Skip to content

Commit

Permalink
fix: Silence staticcheck false positive on lib/utils/disk.go (#47576)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama authored Oct 15, 2024
1 parent 4366faf commit f95aca6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func FreeDiskWithReserve(dir string, reservedFreeDisk uint64) (uint64, error) {
if err != nil {
return 0, trace.Wrap(err)
}
//nolint:staticcheck // SA4003. False positive on macOS.
if stat.Bsize < 0 {
return 0, trace.Errorf("invalid size")
}
Expand Down

0 comments on commit f95aca6

Please sign in to comment.