Skip to content

Commit 44c1b27

Browse files
committed
feat: there is problem
1 parent 63ba116 commit 44c1b27

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: main.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ func main() {
77
foo("a")
88
}
99

10-
func foo(a string) bool {
10+
func foo(a string) error {
1111
if a == "a" {
12-
return true
12+
return nil
1313
}
1414

15-
fmt.Println("not a")
16-
17-
return false
15+
return fmt.Errorf("OOPS")
1816
}

0 commit comments

Comments
 (0)