Skip to content

Commit

Permalink
Ignore the golangci/gosec G115 warning
Browse files Browse the repository at this point in the history
Change-Id: I0db56cb0a5f9ab6e815e2480ec0b66d7061b23d3
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Sep 4, 2024
1 parent 58dc764 commit 9f0427a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/conversion_overflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func updateResultFromBinOp(result *rangeResult, binOp *ssa.BinOp, instr *ssa.Con
result.maxValue = uint(min)
}
if max <= math.MaxInt {
result.minValue = int(max)
result.minValue = int(max) //nolint:gosec
}
}
}
Expand Down

0 comments on commit 9f0427a

Please sign in to comment.