Skip to content

Commit 9766805

Browse files
committed
Revert assert in mapDictionaryToMetadataItems
1 parent f322613 commit 9766805

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/WordPressData/Swift/PostHelper+Metadata.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ extension PostHelper {
2424
public static func mapDictionaryToMetadataItems(_ dictionary: [String: Any]) -> RemotePostMetadataItem? {
2525
let id = dictionary["id"]
2626
let value = dictionary["value"]
27-
if let value {
28-
wpAssert(value is String, "only strings are currently supported by WordPressKit")
29-
}
3027
return RemotePostMetadataItem(
3128
id: (id as? String) ?? (id as? NSNumber)?.stringValue,
3229
key: dictionary["key"] as? String,

0 commit comments

Comments
 (0)