Delete key, not set value to nil

This commit is contained in:
Tyler Hill 2018-11-02 22:29:50 -05:00 committed by GitHub
parent e1f823649f
commit d6688b63c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,6 +182,6 @@ func (player *Player) Destroy() error {
if err != nil {
return err
}
player.manager.players[player.guildID] = nil
delete(player.manager.players, player.guildID)
return nil
}