Skip to content

Commit 19c8de2

Browse files
committed
MoLoader::read() does never return false
1 parent 7d7f1f9 commit 19c8de2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Loader/MoLoader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ private function seekTo(int $position): void
125125

126126
private function readInt(string $byteOrder): int
127127
{
128-
if (($read = $this->read(4)) === false) {
129-
return 0;
130-
}
128+
$read = $this->read(4);
131129

132130
$read = (array) unpack($byteOrder, $read);
133131

0 commit comments

Comments
 (0)