def when
import bend-lint-pack@0.1.1.0/common.bend as Commonimport Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
71# One diagnostic when `hit`, else none.
72def when(hit: Bool, d: Lint.Diag) -> List<&2, Lint.Diag>:
73 match hit:
74 case True{}:
75 [d]
76 case False{}:
77 []