mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 08:23:41 +00:00
Remove duplicated error handling
This commit is contained in:
committed by
Ayke
parent
3e60eeb368
commit
5a34c64fbe
@@ -1856,10 +1856,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
config.GoMinorVersion = 0 // this avoids creating the list of Go1.x build tags.
|
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)
|
cachedGOROOT, err := loader.GetCachedGoroot(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(os.Stderr, err)
|
fmt.Fprintln(os.Stderr, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user