Skip to content

Commit

Permalink
Merge pull request #75 from julien-c/fix-duplicate
Browse files Browse the repository at this point in the history
Remove duplicate code
  • Loading branch information
desmondmorris committed Mar 16, 2015
2 parents 4a94804 + daa09b6 commit 6fcaa5b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ Twitter.prototype.__request = function(method, path, params, callback) {
params = {};
}

// Set the callback if no params are passed
if (typeof params === 'function') {
callback = params;
params = {};
}

// Set API base
if (typeof params.base !== 'undefined') {
base = params.base;
Expand Down

0 comments on commit 6fcaa5b

Please sign in to comment.