Skip to content

Commit

Permalink
adjust lints for new golangci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Nov 12, 2024
1 parent 81cb2ad commit 7da3cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugins/nfs-shares.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (m *assetManagerNFS) GetAssetStatus(ctx context.Context, res db.Resource, a
if err != nil {
return core.AssetStatus{}, fmt.Errorf("cannot get status of share %s from Manila API: %w", assetUUID, err)
}
if share.Size < 0 || uint64(share.Size) != status.Size { //nolint:gosec // we cannot store exabytes and negative check is done
if share.Size < 0 || uint64(share.Size) != status.Size {
return core.AssetStatus{}, fmt.Errorf(
"inconsistent size reports for share %s: Prometheus says %d GiB, Manila says %d GiB",
assetUUID, status.Size, share.Size)
Expand Down

0 comments on commit 7da3cef

Please sign in to comment.