Skip to content

Commit 5041c75

Browse files
authored
Merge pull request #2476 from x4snowman/Operation-minor-fix
2 parents 17e0499 + d348c0f commit 5041c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/Operation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ open class OperationQueue : NSObject, ProgressReporting {
11421142
}
11431143

11441144
internal func _addOperations(_ ops: [Operation], barrier: Bool = false) {
1145-
if 0 == ops.count { return }
1145+
if ops.isEmpty { return }
11461146

11471147
var failures = 0
11481148
var successes = 0

0 commit comments

Comments
 (0)