Skip to content

Commit

Permalink
Merge pull request #28 from closeio/revert-27-query
Browse files Browse the repository at this point in the history
Revert "Use the query if defined directly"
  • Loading branch information
pcothenet authored Nov 11, 2019
2 parents 42d35b0 + 9ea1f39 commit 1c344be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/close.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ var Closeio = function(apiKey) {
}

var option_keys = Object.keys(options);
if (options.query) {
parameters.query = options.query;
} else if (option_keys.length > 0) {
if (option_keys.length > 0) {
parameters.query = '';
option_keys.forEach(function(option) {
var option_wrapper = (!/^".*"$/.test(option) && / +/.test(option)) ? '"' : '';
Expand Down

0 comments on commit 1c344be

Please sign in to comment.