Skip to content
Permalink
Browse files
Handle links already deleted
Reviewed-by: ehelin
  • Loading branch information
rwestberg committed Feb 24, 2020
1 parent bc37f61 commit d451a2652ccd678d556f9b63847ee122e453a43a
Showing with 1 addition and 0 deletions.
  1. +1 −0 issuetracker/src/main/java/org/openjdk/skara/issuetracker/jira/JiraIssue.java
@@ -436,6 +436,7 @@ public void addLink(Link link) {
private void removeWebLink(Link link) {
request.delete("/remotelink")
.param("globalId", "skaralink=" + link.uri().orElseThrow().toString())
.onError(e -> e.statusCode() == 404 ? Optional.of(JSON.object().put("already_deleted", true)) : Optional.empty())
.execute();
}

0 comments on commit d451a26

Please sign in to comment.