reorder early exits
This commit is contained in:
8
main.go
8
main.go
@ -45,10 +45,6 @@ func main() {
|
|||||||
log.Fatalf("WowDir in %s is still the default setting, exiting", cfgPath)
|
log.Fatalf("WowDir in %s is still the default setting, exiting", cfgPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !updateOnlyFlag && config.LaunchCmd == defaultLaunchCmd {
|
|
||||||
log.Fatalf("LaunchCmd in %s is still the default setting, exiting\n", cfgPath)
|
|
||||||
}
|
|
||||||
|
|
||||||
count, err := downloadUpdate(config)
|
count, err := downloadUpdate(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
@ -60,6 +56,10 @@ func main() {
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.LaunchCmd == defaultLaunchCmd {
|
||||||
|
log.Fatalf("LaunchCmd in %s is still the default setting, exiting\n", cfgPath)
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Printf("Starting Epoch....\n", count)
|
fmt.Printf("Starting Epoch....\n", count)
|
||||||
|
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
|
Reference in New Issue
Block a user