Skip to content

Commit

Permalink
Merge pull request #2 from jaavier/hotfix/condition-run-handler
Browse files Browse the repository at this point in the history
Fix condition to run handler
  • Loading branch information
jaavier authored Jul 25, 2023
2 parents 6c8e1f4 + d8ba89e commit 23f8553
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions geval.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ func Run(params *Params) {
var err error
var ctx = context.TODO()

if params.Handler == nil && params.Err == nil {
return
}

if params.Err == nil {
if params.Err == nil && params.Handler != nil {
ctx, err = params.Handler()
}

Expand Down

0 comments on commit 23f8553

Please sign in to comment.