Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
th-schwarz committed Oct 14, 2024
1 parent db44856 commit 5e3b802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/codes/thischwa/dyndrest/model/ZoneImport.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public record ZoneImport(@Nullable List<ZoneImport.Zone> zones) {
* @throws IllegalArgumentException if the host entry is not in the correct format
*/
public List<HostEnriched> getHosts() {
List<HostEnriched> hostEnricheds = new ArrayList<>();
List<HostEnriched> enrichedHosts = new ArrayList<>();
if (zones == null) {
return hostEnricheds;
return enrichedHosts;
}
for (ZoneImport.Zone zone : zones) {
for (String hostRaw : zone.hosts()) {
Expand All @@ -36,10 +36,10 @@ public List<HostEnriched> getHosts() {
hostEnriched.setApiToken(parts[1]);
hostEnriched.setZone(zone.name);
hostEnriched.setNs(zone.ns);
hostEnricheds.add(hostEnriched);
enrichedHosts.add(hostEnriched);
}
}
return hostEnricheds;
return enrichedHosts;
}

/**
Expand Down

0 comments on commit 5e3b802

Please sign in to comment.