Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: MUzairS15 <[email protected]>
  • Loading branch information
MUzairS15 committed Oct 1, 2022
1 parent 5b3b495 commit 7f66845
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/controllers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f66845

Please sign in to comment.