Skip to content

Commit

Permalink
allow empty entry for minutes - starts timer
Browse files Browse the repository at this point in the history
  • Loading branch information
prmaloney committed Jan 23, 2024
1 parent 7874132 commit 90e6fb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/activities.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ var createCmd = &cobra.Command{
minutes = 0
} else {
minutes, err = strconv.Atoi(minutesStr)
}
if err != nil {
fmt.Println("Invalid minutes")
return
if err != nil {
fmt.Println("Invalid minutes")
return
}
}
}

Expand Down

0 comments on commit 90e6fb0

Please sign in to comment.