Skip to content

Commit

Permalink
feat: rename and remove unecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelAHM committed Dec 5, 2024
1 parent cce80a5 commit dacf96c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import net.ripe.db.nrtm4.client.condition.Nrtm4ClientCondition;
import net.ripe.db.nrtm4.client.dao.Nrtm4ClientInfoRepository;
import net.ripe.db.nrtm4.client.dao.Nrtm4ClientRepository;
import net.ripe.db.nrtm4.client.dao.NrtmClientVersionInfo;
import net.ripe.db.whois.common.dao.RpslObjectUpdateInfo;
import net.ripe.db.whois.common.rpsl.RpslObject;
import org.json.JSONObject;
Expand Down Expand Up @@ -42,13 +41,13 @@ public DeltaMirrorImporter(final NrtmRestClient nrtmRestClient,

public void doImport(final String source,
final String sessionId,
final List<UpdateNotificationFileResponse.NrtmFileLink> deltas){
if (deltas.isEmpty()) {
final List<UpdateNotificationFileResponse.NrtmFileLink> freshDeltas){
if (freshDeltas.isEmpty()) {
LOGGER.info("No new deltas to be processed");
return;
}

deltas.forEach(delta -> {
freshDeltas.forEach(delta -> {
final byte[] deltaFilePayload = nrtmRestClient.getDeltaFile(delta.getUrl());

if (deltaFilePayload == null || deltaFilePayload.length == 0){
Expand Down

0 comments on commit dacf96c

Please sign in to comment.