bot: Fix Start incorrect error checking

This commit is contained in:
diamondburned 2021-06-24 21:10:56 -07:00
parent 354199383a
commit d66f667f28
1 changed files with 1 additions and 1 deletions

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