Skip to content

Commit 2df09ed

Browse files
committed
🎨 Small syntax change
1 parent 9349542 commit 2df09ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Roots/Acorn/Console/Kernel.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ public function commands()
9797
{
9898
$this->load($this->app->path('Console/Commands'));
9999

100-
$consoleFile = base_path('routes/console.php');
101-
if (file_exists($consoleFile)) {
102-
require $consoleFile;
100+
if (file_exists($routes = base_path('routes/console.php'))) {
101+
require $routes;
103102
}
104103
}
105104
}

0 commit comments

Comments
 (0)