Skip to content

Commit

Permalink
Fix unnecessarily mutable local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed Jul 5, 2020
1 parent bd94362 commit 357b9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/When.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public func when<Value,Error>(fulfilled promises: [Promise<Value,Error>], qos: D

let (resultPromise, resolver) = Promise<[Value],Error>.makeWithResolver()
let count = promises.count
var resultBuffer = UnsafeMutablePointer<Value?>.allocate(capacity: count)
let resultBuffer = UnsafeMutablePointer<Value?>.allocate(capacity: count)
resultBuffer.initialize(repeating: nil, count: count)
let group = DispatchGroup()
let context = PromiseContext.nowOr(.init(qos: qos))
Expand Down

0 comments on commit 357b9ee

Please sign in to comment.