From a5dddbc1bfecc763f79697776139630b49f1a66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 31 Jan 2022 11:45:00 +0100 Subject: [PATCH] Fix lint error --- internal/codespaces/api/api_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/codespaces/api/api_test.go b/internal/codespaces/api/api_test.go index 6975f9c65..af394cf7e 100644 --- a/internal/codespaces/api/api_test.go +++ b/internal/codespaces/api/api_test.go @@ -168,8 +168,9 @@ func createFakeSearchReposServer(t *testing.T, wantSearchText string, wantSort s responseRepos, } - data, _ := json.Marshal(response) - w.Write(data) + if err := json.NewEncoder(w).Encode(response); err != nil { + t.Error(err) + } })) }