Skip to content

Commit

Permalink
Fix gosec linting error with v1.61.0
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
  • Loading branch information
tpantelis committed Sep 17, 2024
1 parent 687c11c commit 7b7b16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coredns/plugin/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func parseTTL(c *caddy.Controller) (uint32, error) {
return 0, c.Errf("ttl must be in range [0, 3600]: %d", t) //nolint:wrapcheck // No need to wrap this.
}

return uint32(t), nil //nolint:gosec // We can safely ignore integer conversion error
return uint32(t), nil
}

func init() {
Expand Down

0 comments on commit 7b7b16b

Please sign in to comment.