Skip to content

Commit 084f516

Browse files
committed
Handle JSEN in the init from Any?
1 parent e383050 commit 084f516

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/JSEN.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public enum JSEN : Equatable {
3131
case let dictionary as [String:Any]:
3232
let jsenElements: [String:JSEN] = dictionary.compactMapValues { JSEN(from: $0) }
3333
self = .dictionary(jsenElements)
34+
case let jsen as JSEN: self = jsen
3435
default: return nil
3536
}
3637
}

0 commit comments

Comments
 (0)