Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarino Faggiana <marino@marinofaggiana.com>2022-09-28 11:11:55 +0300
committerMarino Faggiana <marino@marinofaggiana.com>2022-09-28 11:11:55 +0300
commit1a55a2688b9449902d18a19c61c68f6815036f7e (patch)
tree7a823d3484a91a77807aacb47056e7cd8adf20b5
parent9a05cfcf3776fbfdfc6d5f814eb5339e57e60663 (diff)
coding
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
-rw-r--r--iOSClient/Networking/NCNetworking.swift12
1 files changed, 3 insertions, 9 deletions
diff --git a/iOSClient/Networking/NCNetworking.swift b/iOSClient/Networking/NCNetworking.swift
index f8b9d5e45..2087dbb06 100644
--- a/iOSClient/Networking/NCNetworking.swift
+++ b/iOSClient/Networking/NCNetworking.swift
@@ -423,15 +423,9 @@ import Photos
}
}
} else {
- isInTaskUploadBackground(fileName: metadata.fileName) { exists in
- if !exists {
- self.uploadFileInBackground(metadata: metadata, start: start) { error in
- DispatchQueue.main.async {
- completion(error)
- }
- }
- } else {
- completion(NKError(errorCode: 0, errorDescription: ""))
+ uploadFileInBackground(metadata: metadata, start: start) { error in
+ DispatchQueue.main.async {
+ completion(error)
}
}
}