Skip to content

Commit

Permalink
re-laxing the newline
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinohara80 committed Dec 14, 2014
1 parent 9f906fd commit 6a5c50c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .jshintrc
@@ -1,5 +1,4 @@
{
"node": true,
"sub": true,
"laxbreak": true
"sub": true
}
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -805,8 +805,8 @@ Connection.prototype._apiRequest = function(opts, callback) {
e.statusCode = res.statusCode;

// auto-refresh support
if(e.errorCode && (e.errorCode === 'INVALID_SESSION_ID' || e.errorCode === 'Bad_OAuth_Token')
&& self.autoRefresh === true && opts.oauth.refresh_token && !opts._retryCount) {
if(e.errorCode && (e.errorCode === 'INVALID_SESSION_ID' || e.errorCode === 'Bad_OAuth_Token') &&
self.autoRefresh === true && opts.oauth.refresh_token && !opts._retryCount) {
opts._retryCount = 1;
opts._resolver = resolver;
Connection.prototype.refreshToken.call(self, { oauth: opts.oauth, executeOnRefresh: true }, function(err2, res2) {
Expand Down

0 comments on commit 6a5c50c

Please sign in to comment.