File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ public class CompoundPredicate : Predicate {
48
48
override public func evaluate( with object: AnyObject ? , substitutionVariables bindings: [ String : AnyObject ] ? ) -> Bool {
49
49
switch compoundPredicateType {
50
50
case . and:
51
- return subpredicates. reduce ( true , combine : {
51
+ return subpredicates. reduce ( true , {
52
52
$0 && $1. evaluate ( with: object, substitutionVariables: bindings)
53
53
} )
54
54
case . or:
55
- return subpredicates. reduce ( false , combine : {
55
+ return subpredicates. reduce ( false , {
56
56
$0 || $1. evaluate ( with: object, substitutionVariables: bindings)
57
57
} )
58
58
case . not:
Original file line number Diff line number Diff line change @@ -632,14 +632,14 @@ public class NSKeyedArchiver : NSCoder {
632
632
}
633
633
634
634
public override func encodePropertyList( _ aPropertyList: AnyObject ) {
635
- if !NSPropertyListClasses. contains ( { $0 == aPropertyList. dynamicType } ) {
635
+ if !NSPropertyListClasses. contains ( where : { $0 == aPropertyList. dynamicType } ) {
636
636
fatalError ( " Cannot encode non-property list type \( aPropertyList. dynamicType) as property list " )
637
637
}
638
638
encode ( aPropertyList)
639
639
}
640
640
641
641
public func encodePropertyList( _ aPropertyList: AnyObject , forKey key: String ) {
642
- if !NSPropertyListClasses. contains ( { $0 == aPropertyList. dynamicType } ) {
642
+ if !NSPropertyListClasses. contains ( where : { $0 == aPropertyList. dynamicType } ) {
643
643
fatalError ( " Cannot encode non-property list type \( aPropertyList. dynamicType) as property list " )
644
644
}
645
645
encode ( aPropertyList, forKey: key)
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ public class NSKeyedUnarchiver : NSCoder {
242
242
243
243
if _flags. contains ( UnarchiverFlags . RequiresSecureCoding) {
244
244
if let unwrappedAllowedClasses = allowedClasses {
245
- if unwrappedAllowedClasses. contains ( { NSKeyedUnarchiver . _classIsKindOfClass ( assertedClass!, $0) } ) {
245
+ if unwrappedAllowedClasses. contains ( where : { NSKeyedUnarchiver . _classIsKindOfClass ( assertedClass!, $0) } ) {
246
246
return true
247
247
}
248
248
}
You can’t perform that action at this time.
0 commit comments