Skip to content

Commit

Permalink
redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Feb 13, 2022
1 parent 586c70c commit 5f1b796
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Psalm/Internal/Provider/StatementsProvider.php
Expand Up @@ -155,10 +155,6 @@ public function getStatementsForFile(

$existing_statements = $this->parser_cache_provider->loadExistingStatementsFromCache($file_path);

if ($existing_statements && !$existing_statements[0] instanceof PhpParser\Node\Stmt) {
$existing_statements = null;
}

$existing_file_contents = $this->parser_cache_provider->loadExistingFileContentsFromCache($file_path);

// this happens after editing temporary file
Expand Down

0 comments on commit 5f1b796

Please sign in to comment.