Skip to content

Commit a028e06

Browse files
committed
Foundation: collapse guard conditional in NSSpecialValue
1 parent 5e90b36 commit a028e06

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/Foundation/NSSpecialValue.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ internal class NSSpecialValue : NSValue {
8282
preconditionFailure("Unkeyed coding is unsupported.")
8383
}
8484
let specialFlags = aDecoder.decodeInteger(forKey: "NS.special")
85-
guard let specialType = NSSpecialValue._typeFromFlags(specialFlags) else {
86-
return nil
87-
}
88-
guard let specialValue = specialType.init(coder: aDecoder) else {
85+
guard let specialType = NSSpecialValue._typeFromFlags(specialFlags),
86+
let specialValue = specialType.init(coder: aDecoder) else {
8987
return nil
9088
}
9189
self.init(specialValue)

0 commit comments

Comments
 (0)