Skip to content

Commit 7895b19

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

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/Loader/StrictPoLoader.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,15 @@ private function readIdentifier(string $identifier, bool $throwIfNotFound = fals
323323
*/
324324
private function readContext(): bool
325325
{
326-
return ($data = $this->readIdentifier('msgctxt')) !== null
327-
&& ($this->translation = $this->translation->withContext($data));
326+
$data = $this->readIdentifier('msgctxt');
327+
328+
if ($data === null) {
329+
return false;
330+
}
331+
332+
$this->translation = $this->translation->withContext($data);
333+
334+
return true;
328335
}
329336

330337
/**

0 commit comments

Comments
 (0)