Skip to content

Commit f86e540

Browse files
committed
msg is always non-empty
1 parent af2a9b2 commit f86e540

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ func isGoInstalled() bool {
880880
return err == nil
881881
}
882882

883-
// Get the version of Go to install in the environment and write to an environment file.
883+
// Get the version of Go to install and write it to an environment file.
884884
func identifyEnvironment() {
885885
var v versionInfo
886886
depMode := getDepMode()
@@ -892,10 +892,7 @@ func identifyEnvironment() {
892892
}
893893

894894
msg, versionToInstall := getVersionToInstall(v)
895-
896-
if msg != "" {
897-
log.Println(msg)
898-
}
895+
log.Println(msg)
899896

900897
writeEnvironmentFile(versionToInstall)
901898
}

0 commit comments

Comments
 (0)