Skip to content

Commit 459b56f

Browse files
committed
Change _runSetup to return a Future
1 parent fce9454 commit 459b56f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/tool_runner.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ToolRunner {
6969

7070
final ToolConfiguration toolConfiguration;
7171

72-
void _runSetup(
72+
Future<void> _runSetup(
7373
String name,
7474
ToolDefinition tool,
7575
Map<String, String> environment,
@@ -202,7 +202,7 @@ class ToolRunner {
202202
}
203203

204204
if (toolDefinition.setupCommand != null && !toolDefinition.setupComplete) {
205-
_runSetup(tool, toolDefinition, envWithInput, toolErrorCallback);
205+
await _runSetup(tool, toolDefinition, envWithInput, toolErrorCallback);
206206
}
207207

208208
argsWithInput = toolArgs + argsWithInput;

0 commit comments

Comments
 (0)