Fix lint error

This commit is contained in:
Mislav Marohnić 2022-01-31 11:45:00 +01:00
parent eeeb73a3e3
commit a5dddbc1bf

View file

@ -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)
}
}))
}