Simplify code and add annotations
This commit is contained in:
parent
4e8519a1b9
commit
658d988254
2 changed files with 8 additions and 7 deletions
|
|
@ -334,9 +334,9 @@ public class HistoryRecordManager {
|
|||
.getState(entities.get(0).getUid()).blockingFirst();
|
||||
if (states.isEmpty()) {
|
||||
result.add(null);
|
||||
continue;
|
||||
} else {
|
||||
result.add(states.get(0));
|
||||
}
|
||||
result.add(states.get(0));
|
||||
}
|
||||
return result;
|
||||
}).subscribeOn(Schedulers.io());
|
||||
|
|
@ -362,9 +362,9 @@ public class HistoryRecordManager {
|
|||
.blockingFirst();
|
||||
if (states.isEmpty()) {
|
||||
result.add(null);
|
||||
continue;
|
||||
} else {
|
||||
result.add(states.get(0));
|
||||
}
|
||||
result.add(states.get(0));
|
||||
}
|
||||
return result;
|
||||
}).subscribeOn(Schedulers.io());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue