mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
リファクタリング
This commit is contained in:
parent
615d58f3ca
commit
daab41620f
|
@ -197,10 +197,8 @@ public class LacertaVcsImpl implements LacertaVcs {
|
|||
private ArrayList<VcsLogEntity> getLogInRevs(ArrayList<VcsRevEntity> vcsRevEntities){
|
||||
ArrayList<VcsLogEntity> vcsLogEntities = new ArrayList<>();
|
||||
vcsRevEntities.forEach(vcsRevEntity -> {
|
||||
vcsRevEntity.logIds.forEach(logId -> {
|
||||
VcsLogEntity vcsLogEntity = database.vcsLogDao().findById(logId);
|
||||
vcsLogEntities.add(vcsLogEntity);
|
||||
});
|
||||
List<String> logIds = new ArrayList<>(vcsRevEntity.logIds);
|
||||
vcsLogEntities.addAll(database.vcsLogDao().findByIds(logIds));
|
||||
});
|
||||
|
||||
return vcsLogEntities;
|
||||
|
|
Loading…
Reference in New Issue
Block a user