1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

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