Skip to content

Commit 20c961e

Browse files
committed
refactor
1 parent c2db32c commit 20c961e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/main/java/de/rwth/idsg/steve/ocpp/converter/Server15to16Impl.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,9 @@ private static MeterValue toOcpp16MeterValue(ocpp.cs._2012._06.MeterValue e) {
302302
}
303303

304304
private static List<MeterValue> toOcpp16TransactionData(List<TransactionData> transactionData) {
305-
List<ocpp.cs._2012._06.MeterValue> combinedList = transactionData.stream()
306-
.flatMap(data -> data.getValues().stream())
307-
.collect(Collectors.toList());
308-
309-
return combinedList.stream()
310-
.map(Server15to16Impl::toOcpp16MeterValue)
311-
.collect(Collectors.toList());
305+
return transactionData.stream()
306+
.flatMap(data -> data.getValues().stream())
307+
.map(Server15to16Impl::toOcpp16MeterValue)
308+
.collect(Collectors.toList());
312309
}
313310
}

0 commit comments

Comments
 (0)