Skip to content

Commit

Permalink
Fix Checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ghareeb-falazi committed Aug 30, 2018
1 parent 7b483af commit a36b3e3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public Response importCSAR(
}
if (importMetaInformation.errors.isEmpty()) {
if (options.isValidate()) {
LOGGER.debug("CSAR import lasted {}", Duration.between(LocalDateTime.now(), start).toString());

return Response.ok(importMetaInformation, MediaType.APPLICATION_JSON).build();
} else if (Objects.nonNull(importMetaInformation.entryServiceTemplate)) {
URI url = uriInfo.getBaseUri().resolve(RestUtils.getAbsoluteURL(importMetaInformation.entryServiceTemplate));
Expand All @@ -223,8 +223,6 @@ public Response importCSAR(
// In case there are errors, we send them as "bad request"
return Response.status(Status.BAD_REQUEST).type(MediaType.APPLICATION_JSON).entity(importMetaInformation).build();
}


}

@POST
Expand Down

0 comments on commit a36b3e3

Please sign in to comment.