Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thushan committed Feb 7, 2024
1 parent aeedf88 commit 9cf4ce3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/slicer/slicer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

0 comments on commit 9cf4ce3

Please sign in to comment.