Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikay <[email protected]>
  • Loading branch information
kartikaysaxena committed Jan 7, 2024
1 parent 0e6cd69 commit 66fd143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ func Respond(w http.ResponseWriter, data interface{}, warnings []error) {
w.WriteHeader(http.StatusOK)

resp := &response{
Status: StatusSuccess,
Status: StatusSuccess,
Warnings: warningsToString(warnings),
Data: data,
Data: data,
}
for _, warn := range warnings {
resp.Warnings = append(resp.Warnings, warn.Error())
Expand Down

0 comments on commit 66fd143

Please sign in to comment.