Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
feat: there is no problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 29, 2024
1 parent bf15220 commit 63ba116
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ func main() {
foo("a")
}

func foo(a string) error {
func foo(a string) bool {
if a == "a" {
return nil
return true
}

return fmt.Errorf("OOPS")
fmt.Println("not a")

return false
}

0 comments on commit 63ba116

Please sign in to comment.