Skip to content

Commit

Permalink
Removed unnecessary curly brackets and whitespace from request.then()
Browse files Browse the repository at this point in the history
  • Loading branch information
rattletone committed Aug 3, 2019
1 parent d99e4d5 commit 0a70a97
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/ApiRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,7 @@ class ApiRequest {
});

if(callback) {
request.then(
data => {
callback(null, data);
},
err => {
callback(err, null);
}
);
request.then(data => callback(null, data), err => callback(err, null));
}
else {
return request;
Expand Down

0 comments on commit 0a70a97

Please sign in to comment.