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
|
dg.Identify.Intents = discordgo.IntentsGuildMessages | discordgo.IntentsDirectMessages
|
||||||
|
|
||||||
err = dg.Open()
|
if err = dg.Open(); err != nil {
|
||||||
if err != nil {
|
|
||||||
log.Fatalf("error opening connection: %v\n", err)
|
log.Fatalf("error opening connection: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user