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 a512066 commit 4102fceCopy full SHA for 4102fce
IceCream/Classes/CreamAsset.swift
@@ -40,7 +40,7 @@ public class CreamAsset: Object {
40
/// Cuz we only store the path of data, so we can't access data by `data` property
41
/// So use this method if you want get the data of this object
42
public func storedData() -> Data? {
43
- return try! Data(contentsOf: filePath)
+ return try? Data(contentsOf: filePath)
44
}
45
46
public var filePath: URL {
0 commit comments