apply prettier formating

This commit is contained in:
Prettier
2018-07-07 01:17:37 +04:00
committed by Aleksey Gurianov
parent 5d1201351a
commit 2df3aa01d4
38 changed files with 215 additions and 190 deletions
+2 -6
View File
@@ -8,12 +8,8 @@ const methods = ['get', 'post', 'put', 'patch', 'delete', 'head'];
methods.forEach(method => {
fetcher[method] = data => {
const {
url,
body = {},
withCredentials = false,
overriddenApiBase = API_BASE,
} = (typeof data === 'string' ? { url: data } : data);
const { url, body = {}, withCredentials = false, overriddenApiBase = API_BASE } =
typeof data === 'string' ? { url: data } : data;
const basename = `${BASE_URL}${overriddenApiBase}`;
return new Promise((resolve, reject) => {