Skip to content

Commit b14f736

Browse files
committed
Right side of && is always true
1 parent 7895b19 commit b14f736

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/Loader/StrictPoLoader.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,15 @@ private function readOriginal(): void
347347
*/
348348
private function readPlural(): bool
349349
{
350-
return ($data = $this->readIdentifier('msgid_plural')) !== null && $this->translation->setPlural($data);
350+
$data = $this->readIdentifier('msgid_plural');
351+
352+
if ($data === null) {
353+
return false;
354+
}
355+
356+
$this->translation->setPlural($data);
357+
358+
return true;
351359
}
352360

353361
/**

0 commit comments

Comments
 (0)