Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
logason committed Oct 23, 2023
1 parent d4e49dc commit 018cde4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ function _request(options) {
.then((response) => {
if (response.statusCode >= 400) {
return reject(responseToError(response));
} else if (response) {
}
if (response && response.body) {
return resolve(JSON.parse(response.body));
} else {
return reject(responseToError(response));
}
return reject(responseToError(response));
})
.catch((err) => {
report.error(`${responseToError(err.response)}\n`);
Expand Down

0 comments on commit 018cde4

Please sign in to comment.