Skip to content

Commit

Permalink
fix: nolint verbose if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR4N committed Sep 14, 2024
1 parent 8aa916b commit 86a1a23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/vm/contracts.libevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ func (args *evmCallArgs) Rules() params.Rules { return args.evm.chainRules }

func (args *evmCallArgs) ReadOnly() bool {
if args.readWrite == inheritReadOnly {
// The verbose `if true { return true }` pattern allows better
// inspection of code coverage.
if args.evm.interpreter.readOnly {
if args.evm.interpreter.readOnly { //nolint:gosimple // Clearer code coverage for difficult-to-test branch
return true
}
return false
Expand Down

0 comments on commit 86a1a23

Please sign in to comment.