def drop.empty

cswap-bend-cli@0.1.0.0 · profile.bend:291

import cswap-bend-cli@0.1.0.0/profile.bend as Profile
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

291def drop.empty(+ps: Json.Json, +raw: Json.Json) -> Json.Json:
292  match ps:
293    case Json.JObj{Json.JNil{}}:
294      Json.del("profiles", raw)
295    case o:
296      Json.set("profiles", ps, raw)

Uses (3)

Used by (1)