Skip to content

Commit 3676a1d

Browse files
committed
Fix closure return type
1 parent 056fc07 commit 3676a1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Foundation/NSDictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ open class NSDictionary : NSObject, NSCopying, NSMutableCopying, NSSecureCoding,
483483
let lock = NSLock()
484484

485485
getObjects(&objects, andKeys: &keys, count: count)
486-
withoutActuallyEscaping(block) { (closure: @escaping (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Void) -> (Int) -> Void in
486+
withoutActuallyEscaping(block) { (closure: @escaping (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Void) -> () in
487487
let iteration: (Int) -> Void = { (idx) in
488488
lock.lock()
489489
var stop = sharedStop

Foundation/NSIndexSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ open class NSIndexSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
389389
let lock = NSLock()
390390
let ranges = _ranges[startRangeIndex...endRangeIndex]
391391
let rangeSequence = (reverse ? AnyCollection(ranges.reversed()) : AnyCollection(ranges))
392-
withoutActuallyEscaping(block) { (closure: @escaping (P, UnsafeMutablePointer<ObjCBool>) -> R) -> (Int) -> Void in
392+
withoutActuallyEscaping(block) { (closure: @escaping (P, UnsafeMutablePointer<ObjCBool>) -> R) -> () in
393393
let iteration = { (rangeIdx) in
394394
lock.lock()
395395
var stop = ObjCBool(sharedStop)

0 commit comments

Comments
 (0)