Skip to content

Commit d348c0f

Browse files
committed
Use Array.isEmpty instead of checking account property
1 parent 17e0499 commit d348c0f

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)