Skip to content

Commit

Permalink
Fix build on Xcode 12
Browse files Browse the repository at this point in the history
  • Loading branch information
andrews05 committed Apr 26, 2022
1 parent 1dac284 commit be17e28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ResForge/Template Editor/Elements/ElementRREF.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ class ElementRREF: Element {
scanner.scanString("'", into: nil),
scanner.scanUpTo("'", into: &typeCode),
scanner.scanString("'", into: nil),
let typeCode = typeCode,
typeCode.length == 4
typeCode?.length == 4
else {
throw TemplateError.invalidStructure(self, NSLocalizedString("Could not determine resource type from label.", comment: ""))
}
resType = typeCode as String
resType = typeCode! as String
if scanner.scanString("#", into: nil) {
scanner.scanInt(&id)
} else {
Expand Down

0 comments on commit be17e28

Please sign in to comment.