Skip to content

Commit 221268e

Browse files
committed
fix: lint error fix charmbracelet#2
1 parent 4ce7c27 commit 221268e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

filepicker/filepicker.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package filepicker
22

33
import (
44
"fmt"
5+
"io/fs"
56
"os"
67
"path/filepath"
78
"sort"
@@ -17,9 +18,8 @@ import (
1718
)
1819

1920
var (
20-
lastID int
21-
idMtx sync.Mutex
22-
21+
lastID int
22+
idMtx sync.Mutex
2323
listWidth, listHeight, _ = term.GetSize(0)
2424
)
2525

@@ -253,7 +253,7 @@ func (m Model) readDir(path string, showHidden bool) tea.Cmd {
253253
}
254254
}
255255

256-
func getCleanDirEntries(dirEntries []os.DirEntry, showHidden bool) []os.DirEntry {
256+
func getCleanDirEntries(dirEntries []fs.DirEntry, showHidden bool) []os.DirEntry {
257257
sort.Slice(dirEntries, func(i, j int) bool {
258258
if dirEntries[i].IsDir() == dirEntries[j].IsDir() {
259259
return dirEntries[i].Name() < dirEntries[j].Name()

0 commit comments

Comments
 (0)