Skip to content

Commit

Permalink
trial
Browse files Browse the repository at this point in the history
  • Loading branch information
uriziv1 committed Aug 25, 2024
1 parent 09655e5 commit 6267ba6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ import (
const MainBasePath = "/"
const CompatibilityBasePath = "/compatibility/"

//go:nosec G115
func safeIntToInt32(val int) int32 {
// Verify no integer overflow conversion int -> int32 (gosec)
if val < math.MinInt32 || val > math.MaxInt32 {
panic("safeIntToInt32 - integer overflow")
}
return int32(val) // int conversion
return int32(val) // #nosec G115
}

func GetDeployment(namespace string) *appsv1.Deployment {
Expand Down

0 comments on commit 6267ba6

Please sign in to comment.