From 17c2ce67a26abba7229d2b1980b2e6a20e69ef23 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Thu, 12 Oct 2017 22:31:07 +0900 Subject: [PATCH] Slightly modify undefined check to make it match the rest of the codebase. No change in expected usage. --- lib/util/ldaputil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/ldaputil.js b/lib/util/ldaputil.js index 1e38c33f..60e59761 100644 --- a/lib/util/ldaputil.js +++ b/lib/util/ldaputil.js @@ -60,7 +60,7 @@ module.exports.login = function(options, username, password) { }) } - if (typeof options.search.filter !== 'undefined') { + if (options.search.filter) { var parsedFilter = ldap.parseFilter(options.search.filter) query.filter.filters.push(parsedFilter) }