Skip to content

Commit

Permalink
chore(quality): [eclipse-tractusx#841] formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Aug 1, 2024
1 parent b4def46 commit dd74856
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ protected SubmodelDescriptor requestSubmodel(final EdcSubmodelFacade submodelFac
private SubmodelDescriptor getSubmodel(final EdcSubmodelFacade submodelFacade,
final Endpoint digitalTwinRegistryEndpoint, final List<String> connectorEndpoints, final String bpn)
throws EdcClientException {

for (final String connectorEndpoint : connectorEndpoints) {
try {
return submodelFacade.getSubmodelPayload(connectorEndpoint,
Expand All @@ -118,6 +119,7 @@ private SubmodelDescriptor getSubmodel(final EdcSubmodelFacade submodelFacade,
log.info("EdcClientException while accessing digitalTwinRegistryEndpoint '{}'", connectorEndpoint, e);
}
}

throw new EdcClientException(
String.format("Called %s connectorEndpoints but did not get any submodels. Connectors: '%s'",
connectorEndpoints.size(), String.join(", ", connectorEndpoints))); // TODO (mfischer)
Expand Down

0 comments on commit dd74856

Please sign in to comment.