Skip to content

Commit 3ae8d36

Browse files
committed
fix: small bug
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent 8d14951 commit 3ae8d36

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/utils.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -383,16 +383,16 @@ pub fn pick_go(resolve: &Resolve, world: WorldId, go_path: Option<&Path>) -> Res
383383
};
384384

385385
if let Some(go) = go {
386-
if check_go_version(&go).is_err() {
387-
eprintln!(
388-
"Note: {} is not a compatible version of Go; will use downloaded version.",
389-
go.display()
390-
);
391-
} else if world_needs_async(resolve, world) && check_go_async_support(&go).is_none() {
386+
if world_needs_async(resolve, world) && check_go_async_support(&go).is_none() {
392387
eprintln!(
393388
"Note: {} does not support async operation; will use downloaded version.\n\
394389
See https://github.com/golang/go/pull/76775 for details.",
395390
go.display()
391+
)
392+
} else if check_go_version(&go).is_err() {
393+
eprintln!(
394+
"Note: {} is not a compatible version of Go; will use downloaded version.",
395+
go.display()
396396
);
397397
} else {
398398
return Ok(go);

0 commit comments

Comments
 (0)