Skip to content

Commit 5bdb3ba

Browse files
Jean85PowerKiKi
authored andcommitted
Simplify return statement
1 parent b77352f commit 5bdb3ba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/PhpSpreadsheet/Reader/Gnumeric.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ public function canRead($pFilename)
6161
$data = fread($fh, 2);
6262
fclose($fh);
6363

64-
if ($data != chr(0x1F) . chr(0x8B)) {
65-
return false;
66-
}
67-
68-
return true;
64+
return $data == chr(0x1F) . chr(0x8B);
6965
}
7066

7167
/**

0 commit comments

Comments
 (0)