Skip to content

Commit 58a9df9

Browse files
committed
Fixed request parameters for test command.
1 parent 2149697 commit 58a9df9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/helper.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,12 @@ function setQuery(map, options, query) {
218218
options = options || {};
219219

220220
map.options.forEach(function eachOpts(opt) {
221-
var nokey = map.nokey && map.nokey.indexOf(opt) > -1;
222-
223221
Object.keys(opt).forEach(function eachOpt(key) {
224222
var param = opt[key],
225223
name = param.name,
226224
value = options[name] || options[key];
227225

228-
if (value !== undefined && param.api && !nokey) {
226+
if (value !== undefined && param.api) {
229227
if (param.array) {
230228
value = [].concat(value).join(' ');
231229
}

0 commit comments

Comments
 (0)