Don't write err to stdout if not present

This commit is contained in:
Ettore Di Giacinto 2020-11-08 10:02:00 +01:00 committed by GitHub
parent 76328176c1
commit 459eb01a59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -663,7 +663,7 @@ func (l *LuetInstaller) uninstall(p pkg.Package, s *System) error {
Warning("Failed reading folder", target, err.Error())
}
if len(files) != 0 {
Warning("Preserving not-empty folder", target, err.Error())
Warning("Preserving not-empty folder", target)
continue
}
}