Skip to content

Commit

Permalink
Fix: CheckStyle issue in If clause
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Sep 9, 2024
1 parent 008d64b commit 71c4f8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@ public static API updateApi(API originalAPI, APIDTO apiDtoToUpdate, APIProvider
public static JSONObject updateCustomBackend(API api, APIProvider apiProvider, String endpointType,
InputStream customBackend, String contentDecomp) throws APIManagementException {
String fileName = getFileNameFromContentDisposition(contentDecomp);
if (fileName == null)
if (fileName == null) {
throw new APIManagementException(
"Error when retrieving Custom Backend file name of API: " + api.getId().getApiName());
}
String seqName = APIUtil.getCustomBackendName(api.getUuid(), endpointType);
String customBackendUUID = UUID.randomUUID().toString();
apiProvider.updateCustomBackend(api, endpointType, customBackend, seqName, customBackendUUID);
Expand Down

0 comments on commit 71c4f8d

Please sign in to comment.