Skip to content

Commit 831ffe2

Browse files
committed
Use Self for internal static access
1 parent 3eea063 commit 831ffe2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

passKit/Extensions/String+Utilities.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public extension String {
1919
}
2020

2121
func splitByNewline() -> [String] {
22-
split(omittingEmptySubsequences: false) { $0 == "\n" || $0 == "\r\n" }.map(String.init)
22+
split(omittingEmptySubsequences: false) { $0 == "\n" || $0 == "\r\n" }.map(Self.init)
2323
}
2424
}
2525

passKit/Extensions/UIAlertActionExtension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public extension UIAlertAction {
4141
let action = UIAlertAction(title: keyID, style: .default, handler: handler)
4242
selectKeyAlert.addAction(action)
4343
}
44-
selectKeyAlert.addAction(UIAlertAction.cancelAndPopView(controller: controller))
44+
selectKeyAlert.addAction(Self.cancelAndPopView(controller: controller))
4545
controller.present(selectKeyAlert, animated: true, completion: nil)
4646
}
4747
}

passKit/Helpers/FileManagerExtension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public extension FileManager {
4040
let enumerator = self.enumerator(
4141
at: directoryURL,
4242
includingPropertiesForKeys: prefetchedProperties,
43-
options: FileManager.DirectoryEnumerationOptions(),
43+
options: Self.DirectoryEnumerationOptions(),
4444
errorHandler: errorHandler
4545
)
4646
precondition(enumerator != nil)

0 commit comments

Comments
 (0)