fix check
This commit is contained in:
parent
a4de86b5df
commit
dcf30464df
1 changed files with 4 additions and 4 deletions
|
@ -66,15 +66,15 @@ public class OrientationTableDuplicatesCheck implements DBIntegrityCheck {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (toDelete.isEmpty()) {
|
|
||||||
return "OK";
|
|
||||||
}
|
|
||||||
|
|
||||||
final List<Long> checkedToDelete = toDelete
|
final List<Long> checkedToDelete = toDelete
|
||||||
.stream()
|
.stream()
|
||||||
.filter(this::doubleCheck)
|
.filter(this::doubleCheck)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
if (checkedToDelete == null || checkedToDelete.isEmpty()) {
|
||||||
|
return "OK";
|
||||||
|
}
|
||||||
|
|
||||||
if (tryFix) {
|
if (tryFix) {
|
||||||
|
|
||||||
checkedToDelete
|
checkedToDelete
|
||||||
|
|
Loading…
Reference in a new issue