Skip to content

Commit 8bc2083

Browse files
committed
Cleanup
1 parent 09b2d96 commit 8bc2083

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/Sources/BuildSettingsKit/BuildSettings+Live.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ extension BuildSettings {
44
static let live = BuildSettings(bundle: .app)
55

66
init(bundle: Bundle) {
7-
self.pushNotificationAppID = bundle.infoPlistValue(forKey: "WPPushNotificationAppID")
8-
self.appGroupName = bundle.infoPlistValue(forKey: "WPAppGroupName")
9-
self.appKeychainAccessGroup = bundle.infoPlistValue(forKey: "WPAppKeychainAccessGroup")
7+
pushNotificationAppID = bundle.infoValue(forKey: "WPPushNotificationAppID")
8+
appGroupName = bundle.infoValue(forKey: "WPAppGroupName")
9+
appKeychainAccessGroup = bundle.infoValue(forKey: "WPAppKeychainAccessGroup")
1010
}
1111
}
1212

1313
private extension Bundle {
14-
func infoPlistValue<T>(forKey key: String) -> T where T: LosslessStringConvertible {
14+
func infoValue<T>(forKey key: String) -> T where T: LosslessStringConvertible {
1515
guard let object = object(forInfoDictionaryKey: key) else {
1616
fatalError("missing value for key: \(key)")
1717
}

0 commit comments

Comments
 (0)