1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 23:02:35 +03:00

Be more explicit in closure argument naming

This commit is contained in:
Tae Won Ha 2017-04-28 18:40:56 +02:00
parent 2c1f521653
commit 48ae3bcf74
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -142,8 +142,8 @@ class FileOutlineView: NSOutlineView,
let childrenToRemoveIndices = curPreparedChildren
.enumerated()
.filter { newPreparedChildren.contains($0.1) == false }
.map { $0.0 }
.filter { (_, fileBrowserItem) in newPreparedChildren.contains(fileBrowserItem) == false }
.map { (idx, _) in idx }
fileBrowserItem.children = curChildren.filter { newChildren.contains($0) }