From 8ed7fd175310ac8f26251111eaeb3b4965f4a5c8 Mon Sep 17 00:00:00 2001 From: tauraamui Date: Wed, 17 Sep 2025 12:09:10 +0100 Subject: [PATCH] fix(lint): appease linter complaints --- internal/fsext/ls.go | 6 ++++-- internal/tui/components/chat/editor/editor_test.go | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/fsext/ls.go b/internal/fsext/ls.go index 333732abbdda8fe1d54892465dc2ab0c244a3889..fa732b5b81c2192292a02c86d512f78e93ebfc37 100644 --- a/internal/fsext/ls.go +++ b/internal/fsext/ls.go @@ -198,8 +198,10 @@ func (dl *directoryLister) getIgnore(path string) ignore.IgnoreParser { }) } -type DirectoryLister func(initialPath string, ignorePatterns []string, limit int) ([]string, bool, error) -type DirectoryListerResolver func() DirectoryLister +type ( + DirectoryLister func(initialPath string, ignorePatterns []string, limit int) ([]string, bool, error) + DirectoryListerResolver func() DirectoryLister +) func ResolveDirectoryLister() DirectoryLister { return listDirectory diff --git a/internal/tui/components/chat/editor/editor_test.go b/internal/tui/components/chat/editor/editor_test.go index 9bf9f5b1ff3af97311685dbc7f3c8fc625a9e20c..b9140d44985beac64f932df5b139f65f25bc8448 100644 --- a/internal/tui/components/chat/editor/editor_test.go +++ b/internal/tui/components/chat/editor/editor_test.go @@ -208,7 +208,6 @@ func TestEditorAutoCompletion_OnNonImageFileFullPathInsertedFromQuery(t *testing m, msg = simulateUpdate(testEditor, keyPressMsg) testEditor = m.(*editorCmp) - selectMsg := completions.SelectCompletionMsg{ Value: FileCompletionItem{ "./root/project/random.txt",