Skip to content

Commit 0478a22

Browse files
committed
Improve comparison clarity
1 parent 28c5a7a commit 0478a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Import/LdapUserImporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function restore(LdapRecord $object, Eloquent $eloquent): void
162162
*/
163163
protected function userIsEnabled(LdapRecord $object): bool
164164
{
165-
return $this->getUserAccountControl($object) === null ? false : ! $this->userIsDisabled($object);
165+
return ! ($this->getUserAccountControl($object) === null) && ! $this->userIsDisabled($object);
166166
}
167167

168168
/**

0 commit comments

Comments
 (0)