From 10d6938c232b16ed004addbbb08d2f830c0c57cb Mon Sep 17 00:00:00 2001 From: Steven Agyekum Date: Tue, 20 Sep 2016 22:25:24 +0200 Subject: [PATCH] same as previous commit --- src/API.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/API.js b/src/API.js index de7db8f..38b0140 100644 --- a/src/API.js +++ b/src/API.js @@ -82,15 +82,14 @@ API = (function(superClass) { results = []; for (k = 0, len1 = ref.length; k < len1; k++) { instance = ref[k]; - if ((instance.server.tls != null) && typeof notls === 'boolean' && notls === true) { - continue; - } - if (typeof notls !== 'boolean') { + if (typeof notls === 'boolean') { + if ((instance.server.tls != null) && notls === true) { + continue; + } + } else if (typeof notls !== 'boolean' || notls === false) { args.push(notls); - results.push(instance[type].apply(instance, args)); - } else { - results.push(void 0); } + results.push(instance[type].apply(instance, args)); } return results; };