Skip to content

Commit b277068

Browse files
author
chantu.lhl
committed
iOS 15 crash fix
1 parent 379f6ac commit b277068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Metadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ extension Metadata {
150150

151151
// If the superclass doesn't conform to handyjson/handyjsonenum protocol,
152152
// we should ignore the properties inside
153-
if !(superclass is HandyJSON.Type) && !(superclass is HandyJSONEnum.Type) {
153+
if (superclass as? HandyJSON) == nil && (superclass as? HandyJSONEnum) == nil {
154154
return nil
155155
}
156156

0 commit comments

Comments
 (0)