Skip to content

Commit

Permalink
Fix a warning when running scaffold without scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Aug 4, 2020
1 parent 463346c commit 966f8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scaffolder/Scaffolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function scaffold(
$script->runScript($host_config, $context);

/** @var CommandResult $result */
$result = $context->getResult('commandResult');
$result = $context->getResult('commandResult', new CommandResult(0, []));
if ($result && $result->failed()) {
throw new RuntimeException(sprintf(
"Scaffolding failed with exit-code %d\n%s",
Expand Down

0 comments on commit 966f8dd

Please sign in to comment.