Skip to content

Commit

Permalink
Removing nil check for accounts as it will never be nil if it did not…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
KrylixZA committed Jul 24, 2024
1 parent 050d225 commit eb7c7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accounts/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit eb7c7b7

Please sign in to comment.