def dup.fp3
cswap-bend-cli@0.1.0.0 · warn.bend:124
import cswap-bend-cli@0.1.0.0/warn.bend as Warn
import Base
124def dup.fp3(other: Maybe<&2, String>, +fp: String, +slot: String, +email: String, ds: DS) -> DS:
125 match other ds:
126 case Some{o} DS{f, i, m}:
127 DS{f, i, append_str(m, "Account-" ++ o ++ " and Account-" ++ slot ++ " hold the same credential (" ++ email ++ ")" ++ dash() ++ "one slot's backup was overwritten. Log in with the missing account and re-add it: cswap add --slot N")}
128 case None{} DS{f, i, m}:
129 DS{Seen{fp, slot} <> f, i, m}