Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent coding style #1787

Merged
merged 1 commit into from Sep 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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