Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
qa: remove intermediate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Dec 28, 2019
1 parent 46393e9 commit 66d9b3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/UndisclosedPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ public function isValid($value)
$this->error(self::NOT_A_STRING);
return false;
}
$isPwnd = $this->isPwnedPassword($value);
if ($isPwnd) {

if ($this->isPwnedPassword($value)) {
$this->error(self::PASSWORD_BREACHED);
return false;
}

return true;
}

Expand Down

0 comments on commit 66d9b3e

Please sign in to comment.