by pikzel · 1y ago · 0 comments
a, err := foo()
b, err := bar()
if err != nil { // oops, forgot to handle foo()'s err }
This is the illusion of safe error handling. % staticcheck test.go
test.go:7:2: this value of err is never used (SA4006)