Skip to content

Commit c0ae56a

Browse files
committed
Fixed formatting with a spotless step
1 parent 518e3f5 commit c0ae56a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/java/dev/jbang/cli/Info.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public Integer doCall() throws IOException {
326326
ScriptInfo info = getInfo(false);
327327
System.out.println("Command invoked: " + info.docs);
328328

329-
URI uri = validateDocsReferenceAndTransformToUri(info);
329+
URI uri = validateDocsReferenceAndTransformToUri(info);
330330
Desktop.getDesktop().browse(uri);
331331
return EXIT_OK;
332332
}
@@ -344,10 +344,10 @@ private static URI validateDocsReferenceAndTransformToUri(ScriptInfo info) {
344344
}
345345

346346
private static Path pathToAbsoluteFile(ScriptInfo info) {
347-
Path path = Paths.get(info.docs);
348-
if (path.isAbsolute()) {
349-
return path;
350-
}
347+
Path path = Paths.get(info.docs);
348+
if (path.isAbsolute()) {
349+
return path;
350+
}
351351
if (info.rootFile != null) {
352352
return info.rootFile.getParent().resolve(path);
353353
}

src/main/java/dev/jbang/source/TagReader.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ protected boolean isDescriptionDeclare(String line) {
155155
}
156156

157157
public Optional<String> getDocs() {
158-
return getTags()
159-
.filter(this::isDocsDeclare)
160-
.map(s -> s.substring(DOCS_COMMENT_PREFIX.length()))
161-
.findFirst();
158+
return getTags()
159+
.filter(this::isDocsDeclare)
160+
.map(s -> s.substring(DOCS_COMMENT_PREFIX.length()))
161+
.findFirst();
162162
}
163163

164164
protected boolean isDocsDeclare(String line) {

0 commit comments

Comments
 (0)