Skip to content

Commit

Permalink
chore: resolve PR commnets
Browse files Browse the repository at this point in the history
  • Loading branch information
eyatsenkoperpetio committed Jan 31, 2024
1 parent 22fa31f commit f7f1ad5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Core/Core/Network/DownloadManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public class DownloadManager: DownloadManagerProtocol {
try FileManager.default.removeItem(at: fileUrl)
}
} catch {
NSLog("Error deleting file: \(error.localizedDescription)")
debugLog("Error deleting file: \(error.localizedDescription)")
}
}
currentDownloadEventPublisher.send(.courseCanceled(courseId))
Expand All @@ -251,7 +251,7 @@ public class DownloadManager: DownloadManagerProtocol {
try FileManager.default.removeItem(at: fileURL)
}
} catch {
NSLog("Error deleting file: \(error.localizedDescription)")
debugLog("Error deleting file: \(error.localizedDescription)")
}
}
}
Expand All @@ -263,7 +263,7 @@ public class DownloadManager: DownloadManagerProtocol {
do {
try FileManager.default.removeItem(at: fileURL)
} catch {
NSLog("Error deleting All files: \(error.localizedDescription)")
debugLog("Error deleting All files: \(error.localizedDescription)")
}
}
}
Expand Down Expand Up @@ -407,7 +407,7 @@ public class DownloadManager: DownloadManagerProtocol {
)
return URL(fileURLWithPath: directoryURL.path)
} catch {
print(error.localizedDescription)
debugLog(error.localizedDescription)
return nil
}
}
Expand All @@ -418,7 +418,7 @@ public class DownloadManager: DownloadManagerProtocol {
do {
try data.write(to: fileURL)
} catch {
NSLog("SaveFile Error", error.localizedDescription)
debugLog("SaveFile Error", error.localizedDescription)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ final class DownloadsViewModel: ObservableObject {
try await manager.cancelDownloading(task: task)
downloads.removeAll(where: { $0.id == task.id })
} catch {
print(error)
debugLog(error)
}
}

Expand Down
8 changes: 4 additions & 4 deletions OpenEdX/Data/CorePersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public class CorePersistence: CorePersistenceProtocol {
do {
try context.save()
} catch {
print("⛔️⛔️⛔️⛔️⛔️", error)
debugLog("⛔️⛔️⛔️⛔️⛔️", error)
}
}
}
Expand All @@ -205,10 +205,10 @@ public class CorePersistence: CorePersistenceProtocol {
for record in records {
context.delete(record)
try context.save()
print("File erased successfully")
debugLog("File erased successfully")
}
} catch {
print("Error fetching records: \(error.localizedDescription)")
debugLog("Error fetching records: \(error.localizedDescription)")
}
}
}
Expand All @@ -229,7 +229,7 @@ public class CorePersistence: CorePersistenceProtocol {
do {
try context.save()
} catch {
print("⛔️⛔️⛔️⛔️⛔️", error)
debugLog("⛔️⛔️⛔️⛔️⛔️", error)
}
}
}
Expand Down
1 change: 0 additions & 1 deletion Profile/Profile/uk.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"SETTINGS.WIFI_TITLE" = "Тільки Wi-fi";
"SETTINGS.WIFI_DESCRIPTION" = "Завантажувати відео, лише коли Wi-Fi увімкнено";
"SETTINGS.VIDEO_QUALITY_TITLE" = "Якість потокового відео";
"SETTINGS.VIDEO_DOWNLOAD_QUALITY_TITLE" = "Video download quality";
"SETTINGS.VIDEO_QUALITY_DESCRIPTION" = "Авто (Рекомендовано)";

"SETTINGS.QUALITY_AUTO_TITLE" = "Авто";
Expand Down

0 comments on commit f7f1ad5

Please sign in to comment.