Skip to content

Commit

Permalink
Fix for issuser signed item debug-description
Browse files Browse the repository at this point in the history
  • Loading branch information
phisakel committed Oct 10, 2023
1 parent f2c613d commit c07fb39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ extension CBOR: CustomDebugStringConvertible {
case .tagged(let tag, .byteString(let bs)): return "tag \(tag.rawValue) 'ByteString \(bs.count)'"
case .unsignedInt(let i): return String(i)
case .boolean(let b): return String(b)
case .array(let a): return "[\(a.reduce("", { $0 + ($0.count > 0 ? "," : "") + " \($1.description)" }))]"
case .map(let m): return "{\(m.reduce("", { $0 + ($0.count > 0 ? "," : "") + " \($1.key.description): \($1.value.description)" }))}"
case .array(let a): return "[\(a.reduce("", { $0 + ($0.count > 0 ? "," : "") + " \($1.debugDescription)" }))]"
case .map(let m): return "{\(m.reduce("", { $0 + ($0.count > 0 ? "," : "") + " \($1.key.debugDescription): \($1.value.debugDescription)" }))}"
case .null: return "Null"
case .simple(let n): return String(n)
default: return "Other"
Expand Down

0 comments on commit c07fb39

Please sign in to comment.