Skip to content

Commit

Permalink
fixed accidental shadow of user var in info command
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisgeoffrey committed Apr 25, 2022
1 parent a1fd28a commit d36f015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/discordapi/discordapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func getElo(s *discordgo.Session, m *discordgo.MessageCreate, dedupedMessage str
return
}

u, err := db.GetUser(strings.Trim(input[1], "<@>"), m.GuildID)
u, err = db.GetUser(strings.Trim(input[1], "<@>"), m.GuildID)
if err != nil {
s.ChannelMessageSendReply( //nolint:errcheck
m.ChannelID,
Expand Down

0 comments on commit d36f015

Please sign in to comment.