リファクタリング

This commit is contained in:
r-ca 2024-01-24 17:49:45 +09:00
parent b58e80f7ea
commit cd1a58dcc0
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -203,13 +203,7 @@ public class LacertaVcsImpl implements LacertaVcs {
} }
private ArrayList<VcsLogEntity> getLogInRev(VcsRevEntity revEntity) { private ArrayList<VcsLogEntity> getLogInRev(VcsRevEntity revEntity) {
ArrayList<VcsLogEntity> vcsLogEntities = new ArrayList<>(); return new ArrayList<>(database.vcsLogDao().findByIds(revEntity.logIds));
revEntity.logIds.forEach(logId -> {
VcsLogEntity vcsLogEntity = database.vcsLogDao().findById(logId);
vcsLogEntities.add(vcsLogEntity);
});
return vcsLogEntities;
} }
@Override @Override