mirror of https://github.com/velour/catbase.git
Fixing unneeded panic issue!
This commit is contained in:
parent
ff661b1d27
commit
f715ab93e1
|
@ -113,7 +113,7 @@ func (p *FactoidPlugin) findTrigger(message string) (bool, *Factoid) {
|
|||
iter := p.Coll.Find(bson.M{"trigger": strings.ToLower(message)}).Iter()
|
||||
err := iter.All(&results)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return false, nil
|
||||
}
|
||||
|
||||
nfacts := len(results)
|
||||
|
|
Loading…
Reference in New Issue