From 4798f07fc8987457073a2184cbef0afdc4d54fdb Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 18 Oct 2018 15:49:17 +0200 Subject: [PATCH] Remove superfluous is_file() check --- src/Whoops/Exception/Frame.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Whoops/Exception/Frame.php b/src/Whoops/Exception/Frame.php index 4383583c..99cb36d1 100644 --- a/src/Whoops/Exception/Frame.php +++ b/src/Whoops/Exception/Frame.php @@ -119,11 +119,6 @@ public function getFileContents() return null; } - // Return null if the file doesn't actually exist. - if (!is_file($filePath)) { - return null; - } - $this->fileContentsCache = file_get_contents($filePath); }