Shorten an error check
This commit is contained in:
parent
d8a28fb211
commit
a551a10e59
@ -97,8 +97,7 @@ func Run() error {
|
||||
|
||||
dg.Identify.Intents = discordgo.IntentsGuildMessages | discordgo.IntentsDirectMessages
|
||||
|
||||
err = dg.Open()
|
||||
if err != nil {
|
||||
if err = dg.Open(); err != nil {
|
||||
log.Fatalf("error opening connection: %v\n", err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user