Signed-off-by: marinofaggiana <ios@nextcloud.com>
@@ -298,8 +298,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
// MARK: -
@objc private func initialize() {
-
- if account == "" { return }
+ guard !account.isEmpty else { return }
NCCommunicationCommon.shared.writeLog("initialize Main")
@@ -121,10 +121,8 @@ class NCFiles: NCCollectionViewCommon {
networkReadFolder(forced: forced) { tableDirectory, metadatas, metadatasUpdate, metadatasDelete, errorCode, _ in
if errorCode == 0 {
for metadata in metadatas ?? [] {
- if !metadata.directory {
- if NCManageDatabase.shared.isDownloadMetadata(metadata, download: false) {
- NCOperationQueue.shared.download(metadata: metadata, selector: NCGlobal.shared.selectorDownloadFile)
- }
+ if !metadata.directory, NCManageDatabase.shared.isDownloadMetadata(metadata, download: false) {
+ NCOperationQueue.shared.download(metadata: metadata, selector: NCGlobal.shared.selectorDownloadFile)
}