mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Removed force unwrapping
This commit is contained in:
@@ -216,9 +216,8 @@ struct SettingsView: View {
|
||||
}
|
||||
|
||||
private func appVersion() -> String {
|
||||
let dict = NSDictionary(contentsOf: Bundle.main.url(forResource: "Info", withExtension: "plist")!)
|
||||
let version = dict?.object(forKey: "CFBundleShortVersionString") as? String ?? ""
|
||||
let build = dict?.object(forKey: "CFBundleVersion") as? String ?? ""
|
||||
let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? ""
|
||||
let build = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String ?? ""
|
||||
return "NetNewsWire \(version) (Build \(build))"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user