Skip to content

Commit

Permalink
fix(request): fix jshint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ro-ka committed Oct 29, 2014
1 parent 1a1dc70 commit e7b28b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Request.prototype.executeRequest = function(method, parameters, callback) {

parameters.consumer_key = this.consumer_key;

for (var key in parameters) {
for (var key in parameters) { // jshint ignore:line
if (key) {
parameterString += (operator + key + '=' + parameters[key]);
if ( operator === '?' ) {
if (operator === '?') {
operator = '&';
}
}
Expand All @@ -50,6 +50,7 @@ Request.prototype.executeRequest = function(method, parameters, callback) {
});
}
});
}
).on('error', function(error) {
callback(error);
});
Expand Down

0 comments on commit e7b28b6

Please sign in to comment.