os.Exit -> return
This commit is contained in:
parent
06dabd08d2
commit
66acd99039
2 changed files with 11 additions and 1 deletions
|
|
@ -0,0 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
||||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue