From df77930bef039e4aef024574c60fb64d75287eee Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 May 2024 21:28:26 +0200 Subject: fix: linking to wrong declaration URLs --- internal/importer/ingest.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal') diff --git a/internal/importer/ingest.go b/internal/importer/ingest.go index 08d0366..7706807 100644 --- a/internal/importer/ingest.go +++ b/internal/importer/ingest.go @@ -57,6 +57,9 @@ func ValueTypeToString(valueType jstream.ValueType) string { } func makeGitHubFileURL(userRepo string, ref string, subPath string) string { + if ref == "" { + ref = "master" + } url, _ := url.JoinPath("https://github.com/", userRepo, "blob", ref, subPath) return url -- cgit 1.4.1