From 5f4b16c00f2475a8efd0ae0d4d4e26f92b563dc0 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 25 Sep 2016 19:48:21 +0200 Subject: Implement changes proposed by gosimple. Also delete the unused "dirIVNameStruct", found by deadcode. --- internal/fusefrontend/file_holes.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'internal/fusefrontend/file_holes.go') diff --git a/internal/fusefrontend/file_holes.go b/internal/fusefrontend/file_holes.go index 1d9a5fb..34f702f 100644 --- a/internal/fusefrontend/file_holes.go +++ b/internal/fusefrontend/file_holes.go @@ -12,10 +12,7 @@ import ( func (f *file) createsHole(plainSize uint64, off int64) bool { nextBlock := f.contentEnc.PlainOffToBlockNo(plainSize) targetBlock := f.contentEnc.PlainOffToBlockNo(uint64(off)) - if targetBlock > nextBlock { - return true - } - return false + return targetBlock > nextBlock } // Zero-pad the file of size plainSize to the next block boundary -- cgit v1.2.3