From 5a34c64fbe8e5f1d47adffc59f786c2369b60f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Henrique=20Guard=C3=A3o=20Gandarez?= Date: Tue, 18 Mar 2025 10:31:30 -0300 Subject: [PATCH] Remove duplicated error handling --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index d4562fc4f..7197deea7 100644 --- a/main.go +++ b/main.go @@ -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)