Use new String extension.

This commit is contained in:
Scott Hoyt
2015-12-27 17:23:54 -06:00
committed by JP Simard
parent 9188d161f5
commit bd26e4c3af
@@ -15,7 +15,7 @@ extension NSFileManager {
}
public func filesToLintAtPath(path: String) -> [String] {
let absolutePath = (path.absolutePathRepresentation() as NSString).stringByStandardizingPath
let absolutePath = path.absolutePathStandardized()
var isDirectory: ObjCBool = false
guard fileExistsAtPath(absolutePath, isDirectory: &isDirectory) else {
return []