From 7f668452430d23b64dd50af815448b4570babcee Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Sat, 1 Oct 2022 09:31:24 +0530 Subject: [PATCH] Fix lint issues Signed-off-by: MUzairS15 --- models/controllers/helpers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/controllers/helpers.go b/models/controllers/helpers.go index 26f20c7d..d60e3137 100644 --- a/models/controllers/helpers.go +++ b/models/controllers/helpers.go @@ -102,18 +102,18 @@ func ConnectivityTest(clientName, externalIP string) bool { if err != nil { return false } - + body, err := io.ReadAll(resp.Body) if err != nil { return false } - + var natsResponse Connections err = json.Unmarshal(body, &natsResponse) if err != nil { return false } - + for _, client := range natsResponse.Connections { if client.Name == clientName { return true