msg is always non-empty

This commit is contained in:
Owen Mansel-Chan
2023-05-03 12:50:58 +01:00
parent af2a9b21ab
commit f86e540d2a

View File

@@ -880,7 +880,7 @@ func isGoInstalled() bool {
return err == nil
}
// Get the version of Go to install in the environment and write to an environment file.
// Get the version of Go to install and write it to an environment file.
func identifyEnvironment() {
var v versionInfo
depMode := getDepMode()
@@ -892,10 +892,7 @@ func identifyEnvironment() {
}
msg, versionToInstall := getVersionToInstall(v)
if msg != "" {
log.Println(msg)
}
log.Println(msg)
writeEnvironmentFile(versionToInstall)
}