             
             operation.completionBlock = nil
             
-            var success = true
             var exportedCount = 0
             
             let exportCompletionBlock: (DKAsset, Error?) -> Void = { asset, error in

                }
                
                if let error = error as NSError? {
                    success = false
                    asset.error = error
                    
                    asset.localTemporaryPath = nil

                        let attributes = try FileManager.default.attributesOfItem(atPath: asset.localTemporaryPath!.path)
                        asset.fileSize = (attributes[FileAttributeKey.size] as! NSNumber).uintValue
                    } catch let error as NSError {
                        asset.error = error
                        
                        asset.localTemporaryPath = nil
