Skip to content

Commit

Permalink
Merge pull request #1154 from SixFiveSoftware/tech/remove_unused_vari…
Browse files Browse the repository at this point in the history
…ables

Remove unused index var in when.swift
  • Loading branch information
mxcl authored Jun 24, 2020
2 parents 953665d + 817ea8c commit f6b15b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/when.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,12 @@ public func when<It: IteratorProtocol>(fulfilled promiseIterator: It, concurrent
}
guard shouldDequeue else { return }

var index: Int!
var promise: It.Element!

barrier.sync(flags: .barrier) {
guard let next = generator.next() else { return }

promise = next
index = promises.count

pendingPromises += 1
promises.append(next)
Expand Down

0 comments on commit f6b15b7

Please sign in to comment.