Skip to content

Commit cbef298

Browse files
committed
chore: Enable unconvert linter
Signed-off-by: Oleksandr Redko <[email protected]>
1 parent 53d7186 commit cbef298

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ linters:
2525
- perfsprint
2626
- revive
2727
- staticcheck
28+
- unconvert
2829
- unused
2930
- usetesting
3031
- whitespace

pkg/imgutil/nativeimgutil/nativeimgutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (n *NativeImageUtil) CreateDisk(disk string, size int64) error {
163163
}
164164
defer f.Close()
165165
roundedSize := roundUp(size)
166-
return f.Truncate(int64(roundedSize))
166+
return f.Truncate(roundedSize)
167167
}
168168

169169
// ConvertToRaw converts a disk image to raw format.

0 commit comments

Comments
 (0)