From 9ea1f398bb0108eb1dcacf03077bae63f0eb2af4 Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Mon, 11 Nov 2019 13:17:46 -0800 Subject: [PATCH] Revert "Use the query if defined directly" --- lib/close.io.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/close.io.js b/lib/close.io.js index 4aaffb6..4d7eaee 100644 --- a/lib/close.io.js +++ b/lib/close.io.js @@ -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)) ? '"' : '';