remove extraneous new arraylist
@@ -1082,7 +1082,6 @@ public class WorkMgr extends AbstractCoordinator {
return new ArrayList<>();
}
List<String> testrigs =
- new ArrayList<>(
CommonUtil.getSubdirectories(testrigsDir)
.stream()
.map(dir -> dir.getFileName().toString())
@@ -1090,9 +1089,8 @@ public class WorkMgr extends AbstractCoordinator {
(t1, t2) -> // reverse sorting by creation time
TestrigMetadataMgr.getTestrigCreationTimestampOrMin(containerName, t2)
.compareTo(
- TestrigMetadataMgr.getTestrigCreationTimestampOrMin(
- containerName, t1)))
- .collect(Collectors.toList()));
+ TestrigMetadataMgr.getTestrigCreationTimestampOrMin(containerName, t1)))
+ .collect(Collectors.toList());
return testrigs;
}
