From ad0f1ee2ff3064060376d31b3ce6ebc2c498aa61 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 26 May 2020 16:41:32 +0100 Subject: [PATCH] Return results anyway --- serverkeyapi/internal/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverkeyapi/internal/api.go b/serverkeyapi/internal/api.go index d560333ce..150d4c223 100644 --- a/serverkeyapi/internal/api.go +++ b/serverkeyapi/internal/api.go @@ -67,7 +67,7 @@ func (s *ServerKeyAPI) FetchKeys( } // If we failed to fetch any keys then we should report an error. if len(requests) > 0 { - return nil, fmt.Errorf("server key API failed to fetch %d keys", len(requests)) + return results, fmt.Errorf("server key API failed to fetch %d keys", len(requests)) } // Return the keys. return results, nil