readd int64 cast + nolint directive.

This commit is contained in:
Raúl Kripalani 2020-08-17 17:21:33 +01:00
parent 862bafc63a
commit 1f016262cd

View File

@ -24,6 +24,6 @@ func FileSize(path string) (SizeInfo, error) {
// NOTE: stat.Blocks is in 512B blocks, NOT in stat.Blksize // NOTE: stat.Blocks is in 512B blocks, NOT in stat.Blksize
// See https://www.gnu.org/software/libc/manual/html_node/Attribute-Meanings.html // See https://www.gnu.org/software/libc/manual/html_node/Attribute-Meanings.html
return SizeInfo{ return SizeInfo{
stat.Blocks * 512, // NOTE: int64 cast is needed on osx int64(stat.Blocks) * 512, // nolint NOTE: int64 cast is needed on osx
}, nil }, nil
} }