Skip to content

Commit 505e5a4

Browse files
committed
fix: address errcheck lint errors in bedrockmantle_test.go
1 parent ecef0f9 commit 505e5a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/ai/bedrockmantle_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func TestBedrockMantleGetCompletion_Success(t *testing.T) {
116116
"choices": []map[string]interface{}{{"index": 0, "message": map[string]string{"role": "assistant", "content": "mock response"}, "finish_reason": "stop"}},
117117
}
118118
w.Header().Set("Content-Type", "application/json")
119-
json.NewEncoder(w).Encode(resp)
119+
_ = json.NewEncoder(w).Encode(resp)
120120
}))
121121
defer server.Close()
122122

@@ -138,7 +138,7 @@ func TestBedrockMantleGetCompletion_Error(t *testing.T) {
138138
t.Setenv("AWS_BEARER_TOKEN_BEDROCK", "test-key")
139139
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
140140
w.WriteHeader(http.StatusInternalServerError)
141-
json.NewEncoder(w).Encode(map[string]interface{}{
141+
_ = json.NewEncoder(w).Encode(map[string]interface{}{
142142
"error": map[string]string{"message": "model error", "type": "server_error"},
143143
})
144144
}))

0 commit comments

Comments
 (0)