mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Use new String extension.
This commit is contained in:
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user