Addded discardableResult

This commit is contained in:
Amir Abbas
2018-03-02 11:51:19 +03:30
parent f384d267cb
commit be38e2731d
8 changed files with 38 additions and 8 deletions
+2
View File
@@ -55,6 +55,7 @@ extension LocalFileProvider: ExtendedFileProvider {
}
}
@discardableResult
open func thumbnailOfFile(path: String, dimension: CGSize? = nil, completionHandler: @escaping ((_ image: ImageClass?, _ error: Error?) -> Void)) -> Progress? {
let dimension = dimension ?? CGSize(width: 64, height: 64)
(dispatch_queue).async {
@@ -88,6 +89,7 @@ extension LocalFileProvider: ExtendedFileProvider {
return nil
}
@discardableResult
open func propertiesOfFile(path: String, completionHandler: @escaping ((_ propertiesDictionary: [String: Any], _ keys: [String], _ error: Error?) -> Void)) -> Progress? {
(dispatch_queue).async {
let fileExt = (path as NSString).pathExtension.lowercased()