Skip to content

Commit

Permalink
Avoid loading testcontainers unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Feb 2, 2022
1 parent 1a73092 commit 2fc409a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private List<DevServiceDescription> buildServiceDescriptions(List<DevServicesRes
}

private Map<String, Container> fetchContainerInfos(Set<String> containerIds) {
if (!isDockerWorking.getAsBoolean() || containerIds.isEmpty()) {
if (containerIds.isEmpty() || !isDockerWorking.getAsBoolean()) {
return Collections.emptyMap();
}
return DockerClientFactory.lazyClient().listContainersCmd()
Expand Down

0 comments on commit 2fc409a

Please sign in to comment.