We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7ac93 commit 344b5e2Copy full SHA for 344b5e2
Slackdeck/Preferences.swift
@@ -18,7 +18,7 @@ struct Prefercences {
18
}
19
20
static var urls: [[String]] {
21
- get { return defaults.array(forKey: kUrls) as! [[String]] }
+ get { return (defaults.array(forKey: kUrls) as? [[String]]) ?? [] }
22
set { save(object: newValue as AnyObject, forKey: kUrls) }
23
24
0 commit comments