diff --git a/src/main/java/codes/thischwa/dyndrest/model/ZoneImport.java b/src/main/java/codes/thischwa/dyndrest/model/ZoneImport.java index 382d25b..4e3a9ee 100644 --- a/src/main/java/codes/thischwa/dyndrest/model/ZoneImport.java +++ b/src/main/java/codes/thischwa/dyndrest/model/ZoneImport.java @@ -19,9 +19,9 @@ public record ZoneImport(@Nullable List zones) { * @throws IllegalArgumentException if the host entry is not in the correct format */ public List getHosts() { - List hostEnricheds = new ArrayList<>(); + List enrichedHosts = new ArrayList<>(); if (zones == null) { - return hostEnricheds; + return enrichedHosts; } for (ZoneImport.Zone zone : zones) { for (String hostRaw : zone.hosts()) { @@ -36,10 +36,10 @@ public List getHosts() { hostEnriched.setApiToken(parts[1]); hostEnriched.setZone(zone.name); hostEnriched.setNs(zone.ns); - hostEnricheds.add(hostEnriched); + enrichedHosts.add(hostEnriched); } } - return hostEnricheds; + return enrichedHosts; } /**