From 9064057c69ff4fd83d162ccdffba224b8e163304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Zamanillo?= Date: Sun, 13 Dec 2020 21:32:54 +0100 Subject: [PATCH] Adder missing returns, omg --- v2/pkg/subscraping/sources/sitedossier/sitedossier.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/pkg/subscraping/sources/sitedossier/sitedossier.go b/v2/pkg/subscraping/sources/sitedossier/sitedossier.go index c91c438..eddb363 100755 --- a/v2/pkg/subscraping/sources/sitedossier/sitedossier.go +++ b/v2/pkg/subscraping/sources/sitedossier/sitedossier.go @@ -35,12 +35,14 @@ func (a *agent) enumerate(ctx context.Context, baseURL string) { if err != nil && !isnotfound { a.results <- subscraping.Result{Source: "sitedossier", Type: subscraping.Error, Error: err} a.session.DiscardHTTPResponse(resp) + return } body, err := ioutil.ReadAll(resp.Body) if err != nil { a.results <- subscraping.Result{Source: "sitedossier", Type: subscraping.Error, Error: err} resp.Body.Close() + return } resp.Body.Close()