Fix lint error
This commit is contained in:
parent
eeeb73a3e3
commit
a5dddbc1bf
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue