Skip to content

Commit

Permalink
Merge pull request #219 from diskfs/lint-for-other
Browse files Browse the repository at this point in the history
nolint for building on unsupported platforms
  • Loading branch information
deitch authored May 26, 2024
2 parents 87a4cfd + 8d32eda commit ab97cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diskfs_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
)

// getBlockDeviceSize get the size of an opened block device in Bytes.
func getBlockDeviceSize(f *os.File) (int64, error) {
func getBlockDeviceSize(_ *os.File) (int64, error) {
return 0, errors.New("block devices not supported on this platform")
}

// getSectorSizes get the logical and physical sector sizes for a block device
func getSectorSizes(f *os.File) (logicalSectorSize, physicalSectorSize int64, err error) {
func getSectorSizes(_ *os.File) (logicalSectorSize, physicalSectorSize int64, err error) {
return 0, 0, errors.New("block devices not supported on this platform")
}

0 comments on commit ab97cb5

Please sign in to comment.