Shorten an error check

This commit is contained in:
Ryan Cavicchioni 2022-09-08 02:28:58 -05:00
parent d8a28fb211
commit a551a10e59
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -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)
}