Skip to content

Commit 6f4aff0

Browse files
committed
Simplify pass logic
1 parent 5b754bf commit 6f4aff0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/PasswordExposed.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ public function passes($attribute, $value)
2020
{
2121
$passwordStatus = (new PasswordExposedChecker())->passwordExposed($value);
2222

23-
if ($passwordStatus === PasswordStatus::EXPOSED) {
24-
return false;
25-
}
26-
27-
return true;
23+
return $passwordStatus !== PasswordStatus::EXPOSED;
2824
}
2925

3026
/**

0 commit comments

Comments
 (0)