File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -523,19 +523,20 @@ on TravisCI as well.
523
523
function url (m:: Method )
524
524
if haskey (ENV , " TRAVIS_REPO_SLUG" )
525
525
repo = ENV [" TRAVIS_REPO_SLUG" ]
526
+
526
527
commit = get (ENV , " TRAVIS_COMMIT" , nothing )
528
+ commit === nothing && return " "
529
+
527
530
root = get (ENV , " TRAVIS_BUILD_DIR" , nothing )
528
- if any (isnothing, (commit, root))
529
- return " "
531
+ root === nothing && return " "
532
+
533
+ file = string (m. file)
534
+ if startswith (file, root) || startswith (realpath (file), root)
535
+ base = " https://github.com/$repo /tree"
536
+ filename = lstrip (file[(length (root)+ 1 ): end ], ' /' )
537
+ return " $base /$commit /$filename #L$(m. line) "
530
538
else
531
- file = string (m. file)
532
- if startswith (file, root) || startswith (realpath (file), root)
533
- base = " https://github.com/$repo /tree"
534
- filename = lstrip (file[(length (root)+ 1 ): end ], ' /' )
535
- return " $base /$commit /$filename #L$(m. line) "
536
- else
537
- return " "
538
- end
539
+ return " "
539
540
end
540
541
else
541
542
return Base. url (m)
You can’t perform that action at this time.
0 commit comments