Skip to content

Commit 97da7f6

Browse files
authored
Foundation: correct misleading indentation (#3047)
The conditions here were over indented. This corrects the misleading indentation.
1 parent 9efa6be commit 97da7f6

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

Sources/Foundation/FileManager+Win32.swift

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -115,51 +115,51 @@ extension FileManager {
115115
return []
116116
}
117117

118-
case .downloadsDirectory:
119-
guard domain == .user else { return [] }
120-
return [FileManager.url(for: FOLDERID_Downloads)]
121-
122-
case .userDirectory:
123-
guard domain == .user else { return [] }
124-
return [FileManager.url(for: FOLDERID_UserProfiles)]
125-
126-
case .moviesDirectory:
127-
guard domain == .user else { return [] }
128-
return [FileManager.url(for: FOLDERID_Videos)]
129-
130-
case .musicDirectory:
131-
guard domain == .user else { return [] }
132-
return [FileManager.url(for: FOLDERID_Music)]
133-
134-
case .picturesDirectory:
135-
guard domain == .user else { return [] }
136-
return [FileManager.url(for: FOLDERID_PicturesLibrary)]
137-
138-
case .sharedPublicDirectory:
139-
guard domain == .user else { return [] }
140-
return [FileManager.url(for: FOLDERID_Public)]
141-
142-
case .trashDirectory:
143-
guard domain == .user else { return [] }
144-
return [FileManager.url(for: FOLDERID_RecycleBinFolder)]
145-
146-
// None of these are supported outside of Darwin:
147-
case .applicationDirectory,
148-
.demoApplicationDirectory,
149-
.developerApplicationDirectory,
150-
.adminApplicationDirectory,
151-
.libraryDirectory,
152-
.developerDirectory,
153-
.documentationDirectory,
154-
.coreServiceDirectory,
155-
.inputMethodsDirectory,
156-
.preferencePanesDirectory,
157-
.applicationScriptsDirectory,
158-
.allApplicationsDirectory,
159-
.allLibrariesDirectory,
160-
.printerDescriptionDirectory,
161-
.itemReplacementDirectory:
162-
return []
118+
case .downloadsDirectory:
119+
guard domain == .user else { return [] }
120+
return [FileManager.url(for: FOLDERID_Downloads)]
121+
122+
case .userDirectory:
123+
guard domain == .user else { return [] }
124+
return [FileManager.url(for: FOLDERID_UserProfiles)]
125+
126+
case .moviesDirectory:
127+
guard domain == .user else { return [] }
128+
return [FileManager.url(for: FOLDERID_Videos)]
129+
130+
case .musicDirectory:
131+
guard domain == .user else { return [] }
132+
return [FileManager.url(for: FOLDERID_Music)]
133+
134+
case .picturesDirectory:
135+
guard domain == .user else { return [] }
136+
return [FileManager.url(for: FOLDERID_PicturesLibrary)]
137+
138+
case .sharedPublicDirectory:
139+
guard domain == .user else { return [] }
140+
return [FileManager.url(for: FOLDERID_Public)]
141+
142+
case .trashDirectory:
143+
guard domain == .user else { return [] }
144+
return [FileManager.url(for: FOLDERID_RecycleBinFolder)]
145+
146+
// None of these are supported outside of Darwin:
147+
case .applicationDirectory,
148+
.demoApplicationDirectory,
149+
.developerApplicationDirectory,
150+
.adminApplicationDirectory,
151+
.libraryDirectory,
152+
.developerDirectory,
153+
.documentationDirectory,
154+
.coreServiceDirectory,
155+
.inputMethodsDirectory,
156+
.preferencePanesDirectory,
157+
.applicationScriptsDirectory,
158+
.allApplicationsDirectory,
159+
.allLibrariesDirectory,
160+
.printerDescriptionDirectory,
161+
.itemReplacementDirectory:
162+
return []
163163
}
164164
}
165165

0 commit comments

Comments
 (0)