refactor: remove unnecessary named return (#2456)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-03-23 02:27:46 +01:00
1 parent e4f5907422
commit b879f822af
1 file changed
+1 -1
+1 -1
View File
@@ -1957,7 +1957,7 @@ func (nav *nav) currSelections() []string {
return paths
}
func (nav *nav) currFileOrSelections() (list []string, err error) {
func (nav *nav) currFileOrSelections() ([]string, error) {
if sel := nav.currSelections(); len(sel) > 0 {
return sel, nil
}