os.Exit -> return

This commit is contained in:
Mihalis Tsoukalos 2019-03-26 12:08:43 +02:00
commit 66acd99039
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,10 @@
package main
import (
"context"
"fmt"
)
func main() {
}

View file

@ -58,7 +58,7 @@ func main() {
if len(os.Args) != 3 {
fmt.Println("Need #jobs and #workers!")
os.Exit(1)
return
}
nJobs, err := strconv.Atoi(os.Args[1])