1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

bot: Fix Start incorrect error checking

This commit is contained in:
diamondburned 2021-06-24 21:10:56 -07:00
parent 354199383a
commit d66f667f28

View file

@ -227,7 +227,7 @@ func Start(
return nil, errors.Wrap(err, "failed to create shard manager")
}
if err := m.Open(context.Background()); err == nil {
if err := m.Open(context.Background()); err != nil {
return nil, errors.Wrap(err, "failed to open")
}