Skip to content

Commit

Permalink
Remove default args
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Sep 24, 2020
1 parent 6c6e1b8 commit 36732d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/GCDCoreOperations/Base Classes/Operation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@ open class Operation {
cleanup()
}

public final func finish(with errors: [Error] = []) {
public final func finish(with errors: [Error]) {
finish(cancelled: false, errors: errors)
}

public final func finish(with errors: Error...) {
finish(with: errors)
}

public final func cancel(with errors: [Error] = []) {
public final func cancel(with errors: [Error]) {
finish(cancelled: true, errors: errors)
}

Expand Down

0 comments on commit 36732d7

Please sign in to comment.