From 91775cfc517331d39196dbdac26cff1a40eb9c71 Mon Sep 17 00:00:00 2001 From: Paul B Date: Thu, 10 Jun 2021 14:41:06 +0200 Subject: [PATCH] WIP: remove child map (#57) --- Sources/Extensions/SwiftCBOR.CBOR.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/Extensions/SwiftCBOR.CBOR.swift b/Sources/Extensions/SwiftCBOR.CBOR.swift index abca40b..a98b25c 100644 --- a/Sources/Extensions/SwiftCBOR.CBOR.swift +++ b/Sources/Extensions/SwiftCBOR.CBOR.swift @@ -32,12 +32,12 @@ extension SwiftCBOR.CBOR { switch self { case let .byteString(val): let fallBack = "[" + val.map { "\($0)" }.joined(separator: ", ") + "]" - if - let child = try? SwiftCBOR.CBOR.decode(val), - case .map(_) = child - { - return child.toString() - } +// if +// let child = try? SwiftCBOR.CBOR.decode(val), +// case .map(_) = child +// { +// return child.toString() +// } return fallBack case let .unsignedInt(val): return "\(val)"