diff --git a/models/friend.go b/models/friend.go index 28ff4e8..5ac027a 100644 --- a/models/friend.go +++ b/models/friend.go @@ -93,11 +93,7 @@ func ValidateFriendShip(friends []Friend, userIDA int, userIDB int) bool { (f.UserIDFrom == userIDB && f.UserIDTo == userIDA)) }) - if len(resultFriends) > 0 { - return true - } - - return false + return len(resultFriends) > 0 } // GetFriendsID return a list of IDs