From 66fd143c40682af8f0e0b30d89e2906226b9c0a4 Mon Sep 17 00:00:00 2001 From: Kartikay Date: Sun, 7 Jan 2024 18:52:23 +0530 Subject: [PATCH] lint fix Signed-off-by: Kartikay --- pkg/api/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index 2c5e191341..240907e575 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -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())