Remove duplicated error handling

This commit is contained in:
Carlos Henrique Guardão Gandarez
2025-03-18 10:31:30 -03:00
committed by Ayke
parent 3e60eeb368
commit 5a34c64fbe
+1 -4
View File
@@ -1856,10 +1856,7 @@ func main() {
os.Exit(1)
}
config.GoMinorVersion = 0 // this avoids creating the list of Go1.x build tags.
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
cachedGOROOT, err := loader.GetCachedGoroot(config)
if err != nil {
fmt.Fprintln(os.Stderr, err)