Skip to content

Commit e6d8557

Browse files
authored
Small readability tweak in forEachIsolateHelper (#9273)
1 parent 8d4bc91 commit e6d8557

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/devtools_app_shared/lib/src/service/service_utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ Future<void> forEachIsolateHelper(
8686
VmService vmService,
8787
Future<void> Function(IsolateRef) callback,
8888
) async {
89-
if ((await vmService.getVM()).isolates case final vmIsolates?
90-
when vmIsolates.isNotEmpty) {
89+
final vm = await vmService.getVM();
90+
if (vm.isolates case final vmIsolates? when vmIsolates.isNotEmpty) {
9191
await [for (final isolate in vmIsolates) callback(isolate)].wait;
9292
}
9393
}

0 commit comments

Comments
 (0)