Skip to content

Commit

Permalink
fix: proper checking of err pointer nil
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
onikonychev and coderabbitai[bot] authored Jan 28, 2025
1 parent be10743 commit 60f3b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/evm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func HandleOutOfGasPanic(err *error, format string) func() {
panic(r)
}
}
if *err != nil && format != "" {
if err != nil && *err != nil && format != "" {
*err = fmt.Errorf("%s: %w", format, *err)
}
}
Expand Down

0 comments on commit 60f3b5c

Please sign in to comment.