Skip to content

Commit 990a4a7

Browse files
committed
simplify return statement of GeneratorTrait::useCacheForFile()
1 parent 637bc38 commit 990a4a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Generator/GeneratorTrait.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ private function useCacheForFile(string $parserFilename): bool
9393

9494
// if an environment exits for the given file, it means that the file has been built from the parser
9595
// thus it was not loaded from cache.
96-
if (isset($this->environments[$parserFilename])) {
97-
return false;
98-
}
99-
100-
return true;
96+
return !isset($this->environments[$parserFilename]);
10197
}
10298
}

0 commit comments

Comments
 (0)