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:
parent
354199383a
commit
d66f667f28
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue