Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Reuse $staticContent
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Nov 29, 2015
1 parent 3e4e8bf commit 1f5e553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/HHVMDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,17 @@ public function start(): void {
}

$bcRepo = $this->options->tempDir.'/hhvm.hhbc';
$staticContent = $this->options->tempDir.'/static.content';
if (file_exists($bcRepo)) {
unlink($bcRepo);
}

$staticContent = $this->options->tempDir.'/static.content';
if ($this->options->filecache) {
if (file_exists($staticContent)) {
unlink($staticContent);
}
$args->add('--file-cache');
$args->add($this->options->tempDir.'/static.content');
$args->add($staticContent);
}

Utils::RunCommand($args);
Expand Down

0 comments on commit 1f5e553

Please sign in to comment.