Skip to content

Commit f845c10

Browse files
committed
Use emptyFile variable for File object construction
1 parent 509d0a0 commit f845c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shell/Task/SimpleBakeTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function bake($name) {
9999
$filename = $this->getPath() . $this->fileName($name);
100100
$this->createFile($filename, $contents);
101101
$emptyFile = $this->getPath() . 'empty';
102-
$File = new File($this->getPath() . 'empty');
102+
$File = new File($emptyFile);
103103
if ($File->exists()) {
104104
$File->delete();
105105
$this->out(sprintf('<success>Deleted</success> `%s`', $emptyFile), 1, Shell::QUIET);

0 commit comments

Comments
 (0)