Skip to content

Commit

Permalink
remove redundant if
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanetteclark committed Apr 12, 2024
1 parent 4b559f2 commit f06fa11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/edu/ucsb/nceas/mdq/rest/RunsResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ public Response getRun(@PathParam("suite") String suiteId, @PathParam("id") Stri
log.debug("Retrieved run with pid: " + run.getId());
} else {
log.info("Run not retrieved for suiteId: " + suiteId + ", metadataId: " + metadataId);
if (run == null) {
return Response.status(Response.Status.NOT_FOUND).build();
}
return Response.status(Response.Status.NOT_FOUND).build();
}

// Get the HTML request 'Accept' header specified media type and return that type
Expand Down

0 comments on commit f06fa11

Please sign in to comment.