mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-04 20:26:08 +00:00
fix(filepicker): fix a panic due to an unchecked assertion (#891)
This commit is contained in:
@@ -377,7 +377,10 @@ func (m Model) View() string {
|
||||
}
|
||||
|
||||
var symlinkPath string
|
||||
info, _ := f.Info()
|
||||
info, err := f.Info()
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
isSymlink := info.Mode()&os.ModeSymlink != 0
|
||||
size := strings.Replace(humanize.Bytes(uint64(info.Size())), " ", "", 1) //nolint:gosec
|
||||
name := f.Name()
|
||||
|
||||
Reference in New Issue
Block a user