Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
olingern committed Jan 27, 2020
1 parent 0856f4b commit 64efa3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/request-manager.js
Expand Up @@ -376,7 +376,7 @@ export default class RequestManager {
const rejectWithoutUrl = function(err) {
err.message = err.message;
rejectNext(err);
}
};

const queueForRetry = reason => {
const attempts = params.retryAttempts || 0;
Expand Down Expand Up @@ -435,9 +435,9 @@ export default class RequestManager {

const server = res.caseless.get('server');

if (res.statusCode === 401 && server === "GitHub.com") {
const message = `${res.body.message}. If using GITHUB_TOKEN in your env, check that it is valid.`
rejectWithoutUrl(new Error(this.reporter.lang('unauthorizedResponse', server, message)))
if (res.statusCode === 401 && server === 'GitHub.com') {
const message = `${res.body.message}. If using GITHUB_TOKEN in your env, check that it is valid.`;
rejectWithoutUrl(new Error(this.reporter.lang('unauthorizedResponse', server, message)));
}

if (res.statusCode === 401 && res.headers['www-authenticate']) {
Expand Down

0 comments on commit 64efa3c

Please sign in to comment.