Skip to content

Commit

Permalink
fix: lint issues and disable predeclared linter (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas authored Sep 12, 2024
1 parent c1199d7 commit 9589cbc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ linters:
- goimports
- gosec
- nilerr
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
Expand Down
2 changes: 1 addition & 1 deletion filepicker/filepicker.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (m Model) View() string {
var symlinkPath string
info, _ := f.Info()
isSymlink := info.Mode()&os.ModeSymlink != 0
size := strings.Replace(humanize.Bytes(uint64(info.Size())), " ", "", 1)
size := strings.Replace(humanize.Bytes(uint64(info.Size())), " ", "", 1) //nolint:gosec
name := f.Name()

if isSymlink {
Expand Down

0 comments on commit 9589cbc

Please sign in to comment.