Skip to content

Commit

Permalink
style(queries.GetProfile): fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince213 committed May 20, 2024
1 parent 62cde84 commit 957523f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/queries/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 957523f

Please sign in to comment.