Skip to content

Commit

Permalink
[issue-77-fix] Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Szymeczko committed Aug 2, 2018
1 parent 2531765 commit ba2cc09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const packageJson = require('../package')

const errorMessage = (statusCode, body) => {
body = body || {}
if (typeof body === "string") {
return 'Unexpected status code: ' + statusCode + ' - Details: ' + body;
if (typeof body === 'string') {
return 'Unexpected status code: ' + statusCode + ' - Details: ' + body
}
body.toString = function () {
return `Unexpected status code: ${statusCode} - Details: ${JSON.stringify(body)}`
Expand Down

0 comments on commit ba2cc09

Please sign in to comment.