Skip to content

Commit 5a34c64

Browse files
gandarezaykevl
authored andcommitted
Remove duplicated error handling
1 parent 3e60eeb commit 5a34c64

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,10 +1856,7 @@ func main() {
18561856
os.Exit(1)
18571857
}
18581858
config.GoMinorVersion = 0 // this avoids creating the list of Go1.x build tags.
1859-
if err != nil {
1860-
fmt.Fprintln(os.Stderr, err)
1861-
os.Exit(1)
1862-
}
1859+
18631860
cachedGOROOT, err := loader.GetCachedGoroot(config)
18641861
if err != nil {
18651862
fmt.Fprintln(os.Stderr, err)

0 commit comments

Comments
 (0)