Chore: nolint comment for nonvalid issues
This commit is contained in:
@@ -144,7 +144,7 @@ func (o *KokoroOrator) requestSound(text string) (io.ReadCloser, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to marshal payload: %w", err)
|
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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to create request: %w", err)
|
return nil, fmt.Errorf("failed to create request: %w", err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ func (stt *WhisperSTT) StopRecording() (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
// Send request
|
// 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 {
|
if err != nil {
|
||||||
stt.logger.Error("fn: StopRecording", "error", err)
|
stt.logger.Error("fn: StopRecording", "error", err)
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ func makeChatTable(chatMap map[string]models.Chat) *tview.Table {
|
|||||||
return chatActTable
|
return chatActTable
|
||||||
}
|
}
|
||||||
|
|
||||||
// func makeRAGTable(fileList []string) *tview.Table {
|
// nolint:unused
|
||||||
func makeRAGTable(fileList []string) *tview.Flex {
|
func makeRAGTable(fileList []string) *tview.Flex {
|
||||||
actions := []string{"load", "delete"}
|
actions := []string{"load", "delete"}
|
||||||
rows, cols := len(fileList), len(actions)+1
|
rows, cols := len(fileList), len(actions)+1
|
||||||
|
|||||||
Reference in New Issue
Block a user