From 7118f42f15283275192a98a6d0783b2da64bf0e6 Mon Sep 17 00:00:00 2001 From: M09ic Date: Wed, 22 Dec 2021 16:40:38 +0800 Subject: [PATCH] remove useless comment fix error output --- v2/pkg/subscraping/sources/zoomeyeapi/zoomeyeapi.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/v2/pkg/subscraping/sources/zoomeyeapi/zoomeyeapi.go b/v2/pkg/subscraping/sources/zoomeyeapi/zoomeyeapi.go index f4a67dc..53f8f69 100644 --- a/v2/pkg/subscraping/sources/zoomeyeapi/zoomeyeapi.go +++ b/v2/pkg/subscraping/sources/zoomeyeapi/zoomeyeapi.go @@ -9,10 +9,6 @@ import ( "github.com/projectdiscovery/subfinder/v2/pkg/subscraping" ) -//type loginResp struct { -// JWT string `json:"access_token"` -//} - // search results type zoomeyeResults struct { Status int `json:"status"` @@ -48,7 +44,7 @@ func (s *Source) Run(ctx context.Context, domain string, session *subscraping.Se resp, err := session.Get(ctx, api, "", headers) isForbidden := resp != nil && resp.StatusCode == http.StatusForbidden if err != nil { - if !isForbidden && currentPage == 0 { + if !isForbidden { results <- subscraping.Result{Source: s.Name(), Type: subscraping.Error, Error: err} session.DiscardHTTPResponse(resp) }