Skip to content

Commit

Permalink
refactor: remove unneeded blocks/semicolons (#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored Aug 17, 2023
1 parent 225c908 commit fedc754
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,12 @@ public <T> void readList(List<T> list,
}

public void readStringList(List<String> list) throws AndrolibException {
readList(list,
(items, reader) -> {
items.add(reader.getLine().getValue());
});
};
readList(list, (items, reader) -> items.add(reader.getLine().getValue()));
}

public void readIntList(List<Integer> list) throws AndrolibException {
readList(list,
(items, reader) -> {
items.add(reader.getLine().getValueInt());
});
};
readList(list, (items, reader) -> items.add(reader.getLine().getValueInt()));
}

public void readMap(Map<String, String> map) throws AndrolibException {
readObject(map,
Expand All @@ -216,5 +210,5 @@ public void readMap(Map<String, String> map) throws AndrolibException {
YamlLine line = reader.getLine();
items.put(line.getKey(), line.getValue());
});
};
}
}

0 comments on commit fedc754

Please sign in to comment.