From 8b9a33d3302ac7e094029556dcc718345afccc4c Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 19 May 2025 10:45:26 +0300 Subject: Chore: nolint comment for nonvalid issues --- extra/audio.go | 2 +- extra/stt.go | 2 +- tables.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/audio.go b/extra/audio.go index fc5e2ba..73d75ed 100644 --- a/extra/audio.go +++ b/extra/audio.go @@ -144,7 +144,7 @@ func (o *KokoroOrator) requestSound(text string) (io.ReadCloser, error) { if err != nil { return nil, fmt.Errorf("failed to marshal payload: %w", err) } - req, err := http.NewRequest("POST", o.URL, bytes.NewBuffer(payloadBytes)) + req, err := http.NewRequest("POST", o.URL, bytes.NewBuffer(payloadBytes)) //nolint:noctx if err != nil { return nil, fmt.Errorf("failed to create request: %w", err) } diff --git a/extra/stt.go b/extra/stt.go index 51fd314..cd9e82e 100644 --- a/extra/stt.go +++ b/extra/stt.go @@ -89,7 +89,7 @@ func (stt *WhisperSTT) StopRecording() (string, error) { return "", err } // Send request - resp, err := http.Post(stt.ServerURL, writer.FormDataContentType(), body) + resp, err := http.Post(stt.ServerURL, writer.FormDataContentType(), body) //nolint:noctx if err != nil { stt.logger.Error("fn: StopRecording", "error", err) return "", err diff --git a/tables.go b/tables.go index bd85356..5685929 100644 --- a/tables.go +++ b/tables.go @@ -165,7 +165,7 @@ func makeChatTable(chatMap map[string]models.Chat) *tview.Table { return chatActTable } -// func makeRAGTable(fileList []string) *tview.Table { +// nolint:unused func makeRAGTable(fileList []string) *tview.Flex { actions := []string{"load", "delete"} rows, cols := len(fileList), len(actions)+1 -- cgit v1.2.3