Skip to content

Commit

Permalink
Remove superfluous is_file() check
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Oct 18, 2018
1 parent e79cd40 commit 4798f07
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Whoops/Exception/Frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4798f07

Please sign in to comment.