From eb7c7b752d5bee68ce44b7f53cb298c33cd34b24 Mon Sep 17 00:00:00 2001 From: Simon Headley Date: Wed, 24 Jul 2024 20:45:08 +0200 Subject: [PATCH] Removing nil check for accounts as it will never be nil if it did not error --- src/accounts/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounts/accounts.go b/src/accounts/accounts.go index 50b82bf..fad3c80 100644 --- a/src/accounts/accounts.go +++ b/src/accounts/accounts.go @@ -22,7 +22,7 @@ func GetAccountsForUser(c *gin.Context) { return } - if accounts == nil || len(accounts) == 0 { + if len(accounts) == 0 { c.IndentedJSON(http.StatusNotFound, gin.H{"message": notFoundErrorMessage}) return }