Skip to content

Commit

Permalink
fix: unnecessary conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Dec 29, 2021
1 parent ed48c09 commit f459b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (t *Telegram) registerHandlers() {

func (t *Telegram) isSuperAdmin(user *tb.User) bool {
for _, uid := range superAdmins {
if int64(user.ID) == uid {
if user.ID == uid {
return true
}
}
Expand Down

0 comments on commit f459b0f

Please sign in to comment.