mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Don't use a local for this
This commit is contained in:
parent
72201664a7
commit
a734acce7a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user