def check.prefer_open

bolt@1.27.0.0 · src/rules/style/wrap.bend:194

import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrap
import Base

194# an angle open wins over a close; otherwise the close stands
195def check.prefer_open(opens: Bool, closed: Act) -> Act:
196  match opens:
197    case True{}:
198      check.drop_close(closed)
199    case False{}:
200      closed

Uses (3)

Used by (1)