Skip to content

Commit

Permalink
refactor: removed useless message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Jul 23, 2023
1 parent e43cbba commit ead3961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Traits/HashIdTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ private function processField($data, $keysTodo, $currentFieldName): mixed
} else {
$decodedField = $this->decode($data);

if (empty($decodedField)) {
throw new IncorrectIdException('ID (' . $currentFieldName . ') is incorrect, consider using the hashed ID.');
if (is_null($decodedField)) {
throw new IncorrectIdException();
}

return $decodedField;
Expand Down

0 comments on commit ead3961

Please sign in to comment.