def said.ok

ezx@1.11.0.0 · src/lock/world.bend:362

import ezx@1.11.0.0/src/lock/world.bend as World
import Base
import ezx@1.11.0.0/src/lock/lock.bend as L

362# what the hub said a name names, once it is known whether the answer is a
363# `0x` name
364def said.ok(ok: Bool, +nv: String, +hash: String, +hub: String) -> Verdict:
365  match ok:
366    case True{}:
367      Named{[L.Name{nv, hash}]}
368    case False{}:
369      No{"ez: the hub at " ++ hub ++ " names no package " ++ nv ++ " (it answered `" ++
370        hash ++ "`)"}

Uses (6)

Used by (1)