diff --git a/src/PhpSpreadsheet/Reader/Gnumeric.php b/src/PhpSpreadsheet/Reader/Gnumeric.php index 617e23ef..512d93e5 100644 --- a/src/PhpSpreadsheet/Reader/Gnumeric.php +++ b/src/PhpSpreadsheet/Reader/Gnumeric.php @@ -61,11 +61,7 @@ class Gnumeric extends BaseReader $data = fread($fh, 2); fclose($fh); - if ($data != chr(0x1F) . chr(0x8B)) { - return false; - } - - return true; + return $data == chr(0x1F) . chr(0x8B); } /**