forked from tangled.org/core

appview/db: cure a few panics master

when db.FilterIn(array) is used, the query compiler would panic on empty lists: db.GetPipelineStatuses( s.db, db.FilterEq("repo_owner", repoInfo.OwnerDid), db.FilterEq("repo_name", repoInfo.Name), db.FilterEq("knot", repoInfo.Knot), db.FilterIn("sha", shas), ) if `shas` was constructed to be an empty list, it would suffice for the filter to always fail and subsequently affect zero rows. Signed-off-by: oppiliappan <me@oppi.li>


+3 -2
1 changed file