Skip to content

Commit

Permalink
Create only the default tmpDir directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 18, 2020
1 parent 0180fbf commit 5be8b80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,9 @@ public static function begin(

if (!isset($tmpDir)) {
$tmpDir = sys_get_temp_dir() . '/phpstan';
$createDir($tmpDir);
}

$createDir($tmpDir);

if ($projectConfigFile !== null) {
$allCustomConfigFiles = self::getConfigFiles(
$currentWorkingDirectoryFileHelper,
Expand Down

0 comments on commit 5be8b80

Please sign in to comment.