Skip to content

Commit bebabcf

Browse files
committed
No format URL when empty format is given
1 parent a062122 commit bebabcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/commonwl/view/workflow/Workflow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public String getRoBundleLink() {
213213
}
214214

215215
public String getPermalink(String format) {
216-
String formatPart = (format != null && !format.isEmpty()) ? "?format=" + format : "";
216+
String formatPart = (format == null || format.isEmpty()) ? "" : "?format=" + format;
217217
String packedPart = (retrievedFrom.getPackedId() != null) ? "#" + retrievedFrom.getPackedId() : "";
218218
return "https://w3id.org/cwl/view/git/" + lastCommit +
219219
"/" + retrievedFrom.getPath() + formatPart + packedPart;

0 commit comments

Comments
 (0)