Skip to content

Commit a44fce9

Browse files
committed
issue-18 bug fix: err wasn't checked, but now is
1 parent a4478e4 commit a44fce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/handler/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func NilNoop(err error) error { return err }
6767
// func ErrorNoop(err error) {}
6868

6969
func (i *Info) callNilHandler() {
70-
if i.CheckHandler != nil {
70+
if i.CheckHandler != nil && i.safeErr() == nil {
7171
i.CheckHandler(true)
7272
// there is no err and user wants to handle OK with our pkg:
7373
// nothing more to do here after callNilHandler call

0 commit comments

Comments
 (0)