Skip to content

Commit

Permalink
fix jshint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NickStefan committed Oct 21, 2016
1 parent 605556a commit 348e08c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/api/client-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ module.exports = function(client) {

if (callback) {
callback.call(self, isAvailable);
}
}
});
}

Expand Down
2 changes: 1 addition & 1 deletion lib/http/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ module.exports = (function() {
});

this.request.setTimeout(15000, function(){
self.emit('timeout');
self.emit('timeout');
});

this.request.on('error', function(response) {
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ Nightwatch.prototype.startSession = function () {
} else {
Logger.warn('Couldn\'t retrieve a new session from selenium server.');
}
}
};
}

function errorCb(data, err) {
Expand Down Expand Up @@ -516,7 +516,7 @@ Nightwatch.prototype.startSession = function () {
request
.on('success', createSuccessCb(request))
.on('error', errorCb)
.on('timeout', createRequest)
.on('timeout', createRequest)
.send();
} else {
self.emit('error', {});
Expand Down

0 comments on commit 348e08c

Please sign in to comment.