Skip to content

Commit f9bb294

Browse files
Use while instead of loop
Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com>
1 parent 5e61dcb commit f9bb294

File tree

1 file changed

+1
-6
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-6
lines changed

src/bootstrap/src/core/build_steps/setup.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,7 @@ impl Step for Vscode {
549549
if config.dry_run() {
550550
return;
551551
}
552-
loop {
553-
let created = t!(create_vscode_settings_maybe(&config));
554-
if created {
555-
break;
556-
}
557-
}
552+
while !t!(create_vscode_settings_maybe(&config)) {}
558553
}
559554
}
560555

0 commit comments

Comments
 (0)