From 1b216de47ea5f28e6c4e8a9fb590c0f030f8e647 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 02:25:57 +0300 Subject: Fix eslint warnings --- vnext/src/api/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vnext/src/api') diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js index 74280ed5..c9ae5688 100644 --- a/vnext/src/api/index.js +++ b/vnext/src/api/index.js @@ -12,7 +12,7 @@ client.interceptors.request.use(config => { }); } return config; -}) +}); export function me(username = '', password = '') { return new Promise((resolve, reject) => { @@ -27,12 +27,12 @@ export function me(username = '', password = '') { }).catch(reason => { localStorage.clear(); reject(reason); - }) + }); }); } export function getChats() { - return client.get('/groups_pms') + return client.get('/groups_pms'); } export function getChat(userName) { @@ -40,20 +40,20 @@ export function getChat(userName) { params: { 'uname': userName } - }) + }); } export function pm(userName, body) { let form = new FormData(); form.set('uname', userName); form.set('body', body); - return client.post('/pm', form) + return client.post('/pm', form); } export function getMessages(path, params) { return client.get(path, { params: params - }) + }); } export function post(body, attach) { -- cgit v1.2.3