File tree 2 files changed +9
-9
lines changed 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ public Integer doCall() throws IOException {
326
326
ScriptInfo info = getInfo (false );
327
327
System .out .println ("Command invoked: " + info .docs );
328
328
329
- URI uri = validateDocsReferenceAndTransformToUri (info );
329
+ URI uri = validateDocsReferenceAndTransformToUri (info );
330
330
Desktop .getDesktop ().browse (uri );
331
331
return EXIT_OK ;
332
332
}
@@ -344,10 +344,10 @@ private static URI validateDocsReferenceAndTransformToUri(ScriptInfo info) {
344
344
}
345
345
346
346
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
+ }
351
351
if (info .rootFile != null ) {
352
352
return info .rootFile .getParent ().resolve (path );
353
353
}
Original file line number Diff line number Diff line change @@ -155,10 +155,10 @@ protected boolean isDescriptionDeclare(String line) {
155
155
}
156
156
157
157
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 ();
162
162
}
163
163
164
164
protected boolean isDocsDeclare (String line ) {
You can’t perform that action at this time.
0 commit comments