Skip to content

Commit

Permalink
gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
shaynafinocchiaro committed Oct 7, 2024
1 parent 80252e9 commit 64eac52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/karavictl/cmd/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func validatePowerFlexPool(storageSystemDetails System, storageSystemID string,
return err
}

if int64(poolQuota.Quota) < 0 {
if poolQuota.Quota < 0 {
return errors.New("the specified quota needs to be a positive number")
}
return nil
Expand Down Expand Up @@ -234,7 +234,7 @@ func validatePowerMaxStorageResourcePool(ctx context.Context, storageSystemDetai
return err
}

if int64(poolQuota.Quota) < 0 {
if poolQuota.Quota < 0 {
return errors.New("the specified quota needs to be a positive number")
}
return nil
Expand All @@ -257,7 +257,7 @@ func validatePowerScaleIsiPath(storageSystemDetails System, _ string, poolQuota
return err
}

if int64(poolQuota.Quota) != 0 {
if poolQuota.Quota != 0 {
return errors.New("quota must be 0 as it is not enforced by CSM-Authorization")
}

Expand Down

0 comments on commit 64eac52

Please sign in to comment.