From 9cf4ce3142e212a5d126ecfc60f5e352172be829 Mon Sep 17 00:00:00 2001 From: Thushan Fernando Date: Wed, 7 Feb 2024 17:54:07 +1100 Subject: [PATCH] Lint --- pkg/slicer/slicer.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/slicer/slicer.go b/pkg/slicer/slicer.go index c468d1b..2fbe2d4 100644 --- a/pkg/slicer/slicer.go +++ b/pkg/slicer/slicer.go @@ -3,10 +3,11 @@ package slicer import ( "encoding/gob" "errors" - "github.com/thushan/smash/internal/algorithms" "io" "io/fs" "os" + + "github.com/thushan/smash/internal/algorithms" ) type Slicer struct { @@ -245,5 +246,7 @@ func shouldAnalyseBasedOnSize(fileSize, minSize, maxSize uint64) bool { } func shouldIgnoreFileMode(fio os.FileInfo) bool { return fio.Mode()&os.ModeNamedPipe != 0 || - fio.Mode()&os.ModeSocket != 0 + fio.Mode()&os.ModeSocket != 0 || + fio.Mode()&os.ModeDevice != 0 || + fio.Mode()&os.ModeSymlink != 0 }