Skip to content

Commit 0b506b5

Browse files
committed
Minor code cleanup
1 parent 9aed4c6 commit 0b506b5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/main/java/org/trellisldp/camel/Link.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ public Link(final String value) {
3737
this.uri = val.startsWith("<") && val.endsWith(">") ? val.substring(1, val.length() - 1) : null;
3838
for (int i = 1; i < parts.length; i++) {
3939
final String[] p = parts[i].trim().split("=");
40-
if (p.length == 2) {
41-
if (!params.containsKey(p[0])) {
42-
if (p[1].startsWith("\"") && p[1].endsWith("\"")) {
43-
params.put(p[0], p[1].substring(1, p[1].length() - 1));
44-
} else {
45-
params.put(p[0], p[1]);
46-
}
40+
if (p.length == 2 && !params.containsKey(p[0])) {
41+
if (p[1].startsWith("\"") && p[1].endsWith("\"")) {
42+
params.put(p[0], p[1].substring(1, p[1].length() - 1));
43+
} else {
44+
params.put(p[0], p[1]);
4745
}
4846
}
4947
}

0 commit comments

Comments
 (0)