Skip to content

Commit cc9863a

Browse files
committed
style: 代码格式化
1 parent 686e102 commit cc9863a

File tree

2 files changed

+96
-102
lines changed

2 files changed

+96
-102
lines changed

Sources/rmtrash/rmtrash.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ public protocol FileManagerType {
9696
func isRootDir(_ url: URL) -> Bool
9797
func isEmptyDirectory(_ url: URL) -> Bool
9898
func isCrossMountPoint(_ url: URL) throws -> Bool
99-
99+
100100
func fileType(_ url: URL) -> FileAttributeType?
101101
func subpaths(atPath path: String, enumerator handler: (String) -> Bool)
102102
}
103103

104104
extension FileManager: FileManagerType {
105-
105+
106106
public func trashItem(at url: URL) throws {
107107
Logger.verbose("rmtrash: \(url.path)")
108108
try trashItem(at: url, resultingItemURL: nil)
109109
}
110-
110+
111111
public func isRootDir(_ url: URL) -> Bool {
112112
return url.standardizedFileURL.path == "/"
113113
}
@@ -125,7 +125,7 @@ extension FileManager: FileManagerType {
125125
let urlVol = try url.resourceValues(forKeys: [URLResourceKey.volumeURLKey])
126126
return curVol.volume != urlVol.volume
127127
}
128-
128+
129129
public func fileType(_ url: URL) -> FileAttributeType? {
130130
guard let attr = try? attributesOfItem(atPath: url.path) else {
131131
return nil

0 commit comments

Comments
 (0)