From b0ec35bb1d0abe6649046f3d43dc6f042239c82f Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Fri, 7 Oct 2016 18:06:58 +0200 Subject: [PATCH] Refactor slightly --- VimR/FileUtils.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VimR/FileUtils.swift b/VimR/FileUtils.swift index 08a1a894..5f5d2f79 100644 --- a/VimR/FileUtils.swift +++ b/VimR/FileUtils.swift @@ -49,8 +49,8 @@ class FileUtils { } let pathComps = urls.map { $0.pathComponents } - let min = pathComps.reduce(pathComps[0].count) { (result, comps) in result < comps.count ? result : comps.count } - let pathCompsOnlyMin = pathComps.map { Array($0[0.. 1 { return idx - 1