mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
リファクタリング
This commit is contained in:
1 file changed
+2
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user