diff --git a/lib/datasource/go/index.ts b/lib/datasource/go/index.ts
index e88d9fffd49d609cde4035a5480849b0ac27499c..5e9c85964bc78285d39d6d09f4e67723f96f3b26 100644
--- a/lib/datasource/go/index.ts
+++ b/lib/datasource/go/index.ts
@@ -89,7 +89,10 @@ export async function getPkgReleases({
   const source = await getDatasource(lookupName);
   if (source && source.datasource === github.id) {
     const res = await github.getPkgReleases(source);
-
+    // istanbul ignore if
+    if (!res) {
+      return res;
+    }
     /**
      * github.com/org/mod/submodule should be tagged as submodule/va.b.c
      * and that tag should be used instead of just va.b.c, although for compatibility