From 05d5b444b95e8404507fcc973d9f31a709752a63 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 28 Mar 2020 10:13:26 +0100
Subject: [PATCH] fix(go): check for res from github datasource before
 continuing

---
 lib/datasource/go/index.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/datasource/go/index.ts b/lib/datasource/go/index.ts
index e88d9fffd4..5e9c85964b 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
-- 
GitLab