Skip to content

Commit

Permalink
Fix broken return.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed May 30, 2017
1 parent 4349aae commit f1141d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Robo/BltTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected function executeCommandInDrupalVm($command) {
* The exit code of the last executed command.
*/
protected function executeCommandAgainstFilesets(array $filesets, $command, $parallel = FALSE) {
$result = 0;
$exit_code = 0;
foreach ($filesets as $fileset_id => $fileset) {
if (!is_null($fileset) && iterator_count($fileset)) {
$this->say("Iterating over fileset $fileset_id...");
Expand All @@ -234,7 +234,7 @@ protected function executeCommandAgainstFilesets(array $filesets, $command, $par
}
}

return $result->getExitCode();
return $exit_code;
}

/**
Expand Down

0 comments on commit f1141d9

Please sign in to comment.