Skip to content

Commit

Permalink
Remove redundant is_string check
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Nov 15, 2024
1 parent 85df02b commit 97a88f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MinFraud.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ public function withDevice(
}

if ($sessionId !== null) {
if (!\is_string($sessionId)
|| $sessionId === ''
if ($sessionId === ''
|| \strlen($sessionId) > 255) {
$this->maybeThrowInvalidInputException(
"Session ID ($sessionId) must be a string with length between 1 and 255",
Expand Down

0 comments on commit 97a88f5

Please sign in to comment.