forked from tangled.org/core
Something went wrong. Try again.
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>
Author oppiliappan Committer Tangled Date (Aug 4, 2025, 5:16 PM UTC) Commit 17890890 178908905f79d8847d5ca269dd0204311dc7c176 Parent 3cfae495 3cfae4952dc97e1aa8ec664143bf5fa1170a02dc