LMCoreNS // Disable forced unwrap.
This commit is contained in:
parent
4d010e9fc7
commit
d0fba52ca8
|
@ -82,7 +82,8 @@ extension vChewing {
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let rawData = try Data(contentsOf: URL(fileURLWithPath: path))
|
let rawData = try Data(contentsOf: URL(fileURLWithPath: path))
|
||||||
let rawPlist = try PropertyListSerialization.propertyList(from: rawData, format: nil) as! [String: [Data]]
|
let rawPlist: [String: [Data]] =
|
||||||
|
try PropertyListSerialization.propertyList(from: rawData, format: nil) as? [String: [Data]] ?? .init()
|
||||||
rangeMap = rawPlist
|
rangeMap = rawPlist
|
||||||
} catch {
|
} catch {
|
||||||
IME.prtDebugIntel("↑ Exception happened when reading plist file at: \(path).")
|
IME.prtDebugIntel("↑ Exception happened when reading plist file at: \(path).")
|
||||||
|
|
Loading…
Reference in New Issue