From 957523f05bb0fb7e8e48a1cea248d110ce9919f6 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Mon, 20 May 2024 11:06:12 +0800 Subject: [PATCH] style(queries.GetProfile): fix style --- pkg/queries/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/queries/user.go b/pkg/queries/user.go index deac4fe..d44b14c 100644 --- a/pkg/queries/user.go +++ b/pkg/queries/user.go @@ -360,7 +360,7 @@ func GetProfile(db *gorm.DB, queriedUserID uint, queryingUserID uint) (models.Pr // As written in the previous commit, administrators do not // have access to the invitation code of users other than themselves. displayInvitationCode := queryingUserID == queriedUserID - var displayReward bool = queryingUserID == queriedUserID + displayReward := queryingUserID == queriedUserID if queryingUserID != 0 && queryingUserID != queriedUserID { queryingUser, err := GetUserByID(db, queryingUserID)