Slightly modify undefined check to make it match the rest of the codebase. No change in expected usage.

This commit is contained in:
Simo Kinnunen
2017-10-12 22:31:07 +09:00
parent c55b08fbc2
commit 17c2ce67a2

View File

@@ -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)
}