def reimport.line.go
import ezx@1.11.0.0/src/ledger/upgrade.bend as Upgradeimport Base
189# one line, with the branch already chosen. A match cannot scrutinise a call.
190def reimport.line.go(hit: Bool, +line: String, +old: String, +new: String) -> String:
191 match hit:
192 case True{}:
193 String.append(reimport.head(new),
194 String.drop(line, String.length(reimport.head(old))))
195 case False{}:
196 line