Do not log duplicates renamed if there is none

This commit is contained in:
Davide De Rosa 2022-04-13 11:16:38 +02:00
parent 3a3d2460a8
commit 2273ebd8b5
1 changed files with 4 additions and 2 deletions

View File

@ -360,9 +360,11 @@ extension ProfileManager {
renamedProfiles.append(uniqueProfile) renamedProfiles.append(uniqueProfile)
} }
} }
if !renamedProfiles.isEmpty {
strategy.saveProfiles(renamedProfiles) strategy.saveProfiles(renamedProfiles)
pp_log.debug("Duplicates successfully renamed!") pp_log.debug("Duplicates successfully renamed!")
} }
}
} }
// MARK: Readiness // MARK: Readiness