fix check

This commit is contained in:
anhefti 2022-05-25 10:24:56 +02:00
parent a4de86b5df
commit dcf30464df

View file

@ -66,15 +66,15 @@ public class OrientationTableDuplicatesCheck implements DBIntegrityCheck {
}
}
if (toDelete.isEmpty()) {
return "OK";
}
final List<Long> checkedToDelete = toDelete
.stream()
.filter(this::doubleCheck)
.collect(Collectors.toList());
if (checkedToDelete == null || checkedToDelete.isEmpty()) {
return "OK";
}
if (tryFix) {
checkedToDelete