From a74ab87df22a04932bcb1cc91d05dd0b2fa4ae9e Mon Sep 17 00:00:00 2001 From: Ali Servet Donmez Date: Mon, 17 Sep 2018 16:19:34 +0200 Subject: [PATCH] Consistent coding style (#1787) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6c0bc57..476d34a 100755 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ axios({ url:'http://bit.ly/2mTM3nY', responseType:'stream' }) - .then(function(response) { + .then(function (response) { response.data.pipe(fs.createWriteStream('ada_lovelace.jpg')) }); ``` @@ -267,7 +267,7 @@ These are the available config options for making requests. Only the `url` is re // `paramsSerializer` is an optional function in charge of serializing `params` // (e.g. https://www.npmjs.com/package/qs, http://api.jquery.com/jquery.param/) - paramsSerializer: function(params) { + paramsSerializer: function (params) { return Qs.stringify(params, {arrayFormat: 'brackets'}) }, @@ -413,7 +413,7 @@ When using `then`, you will receive the response as follows: ```js axios.get('/user/12345') - .then(function(response) { + .then(function (response) { console.log(response.data); console.log(response.status); console.log(response.statusText); @@ -553,7 +553,7 @@ const source = CancelToken.source(); axios.get('/user/12345', { cancelToken: source.token -}).catch(function(thrown) { +}).catch(function (thrown) { if (axios.isCancel(thrown)) { console.log('Request canceled', thrown.message); } else {