Fixed many warnings

This commit is contained in:
2021-05-27 21:08:22 +02:00
parent 4126b0180f
commit bab67be104
5 changed files with 7 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ class LibraryImport {
func backupFiles() -> [String] {
do {
guard let documentDirectory = try ICloudManager.backup_folder else { return [] }
guard let documentDirectory = ICloudManager.backup_folder else { return [] }
let filesInDocumentsDir = try FileManager.default.contentsOfDirectory(at: documentDirectory, includingPropertiesForKeys: .none, options: [])
@@ -169,7 +169,7 @@ class LibraryImport {
for console in library.consoles {
let cdConsole = makeCDConsole(from: console)
print("CONSOLE: \(cdConsole.name ?? "n/a") with \(console.games.count) games")
print("CONSOLE: \(cdConsole.name) with \(console.games.count) games")
for uuid in console.games {
if let game = library.games.first(where: {$0.uuid == uuid}) {