Skip to content

Commit

Permalink
Removed unneccessary whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
calixtus authored May 20, 2022
1 parent e387361 commit 5160bcf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/org/jabref/model/entry/identifier/DOI.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ public DOI(String doi) {
// decodes path segment
URI url = new URI(trimmedDoi);
trimmedDoi = url.getScheme() + "://" + url.getHost() + url.getPath();
} catch (
URISyntaxException e) {
} catch (URISyntaxException e) {
throw new IllegalArgumentException(doi + " is not a valid HTTP DOI/Short DOI.");
}
}
Expand Down Expand Up @@ -170,9 +169,7 @@ public static Optional<DOI> parse(String doi) {
cleanedDOI = cleanedDOI.replaceAll(CHARS_TO_REMOVE, "");

return Optional.of(new DOI(cleanedDOI));
} catch (
IllegalArgumentException |
NullPointerException e) {
} catch (IllegalArgumentException | NullPointerException e) {
return Optional.empty();
}
}
Expand Down

0 comments on commit 5160bcf

Please sign in to comment.