Don't use a local for this

This commit is contained in:
Matt Diephouse 2015-01-12 12:32:37 -08:00
parent 72201664a7
commit a734acce7a

View File

@ -189,8 +189,7 @@ final public class Repository {
let strarray = pointer.memory
let remotes: [Result<Remote>] = map(0..<strarray.count) {
let idx = Int($0)
let name = String.fromCString(strarray.strings[idx])!
let name = String.fromCString(strarray.strings[Int($0)])!
return self.remoteWithName(name)
}
pointer.dealloc(1)