Skip to content

Commit

Permalink
Consistent coding style (#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
exalted authored and rootsher committed Sep 17, 2018
1 parent 81eaa3d commit a74ab87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -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'))
});
```
Expand Down Expand Up @@ -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'})
},

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a74ab87

Please sign in to comment.