Skip to content

Commit

Permalink
chore: clean error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Nov 4, 2024
1 parent 675036a commit 2aa8b15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provider/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ func (p *getter) IntGetter() (func() (int64, error), error) {

return func() (int64, error) {
f, err := g()
return int64(f), err
if err != nil {
return 0, err
}

return int64(f), nil
}, err
}

Expand Down

0 comments on commit 2aa8b15

Please sign in to comment.