Skip to content

Commit

Permalink
making sure query isn't null
Browse files Browse the repository at this point in the history
  • Loading branch information
iros committed Nov 10, 2014
1 parent c29ccda commit 06ffe10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ module.exports = function( ss_key, auth_id ){
if ( typeof( opts ) == 'function' ){
cb = opts;
opts = {};
query = null;
query = {};
// so is query
} else if ( typeof( query ) == 'function' ){
cb = query;
query = null;
query = {};
}

if ( opts.start ) query["start-index"] = opts.start;
Expand Down

0 comments on commit 06ffe10

Please sign in to comment.