Skip to content

Commit 6a300c6

Browse files
authored
Remove an unused variable (#7)
1 parent b48238f commit 6a300c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/Builder.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use DateTime;
66
use DateInterval;
77
use BadMethodCallException;
8+
use Exception;
89
use InvalidArgumentException;
910
use Symfony\Component\Process\Process;
1011

@@ -259,8 +260,8 @@ public function execute($command = null, callable $output = null)
259260
return $this->runProcess($this->process());
260261
}
261262

262-
return $this->retry($times, $sleep, function () use ($process) {
263-
return $this->runProcess($process)->throw();
263+
return $this->retry($times, $sleep, function ($attempts) {
264+
return $this->runProcess($this->process())->throw();
264265
});
265266
}
266267

0 commit comments

Comments
 (0)