Skip to content

Commit 0a619c3

Browse files
committed
remove redundant Int32 cast
1 parent 12f12c4 commit 0a619c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/FileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ open class FileManager : NSObject {
300300

301301
try _contentsOfDir(atPath: path, { (entryName, entryType) throws in
302302
contents.append(entryName)
303-
if entryType == Int32(DT_DIR) {
303+
if entryType == DT_DIR {
304304
let subPath: String = path + "/" + entryName
305305
let entries = try subpathsOfDirectory(atPath: subPath)
306306
contents.append(contentsOf: entries.map({file in "\(entryName)/\(file)"}))

0 commit comments

Comments
 (0)