From 1348357938f43f11ea5fc9245973637b87fbe5bd Mon Sep 17 00:00:00 2001 From: Bradley Kemp Date: Mon, 13 Apr 2020 21:03:33 +0100 Subject: [PATCH] Fix eroneous not found message when matcher hits --- abwhose.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/abwhose.go b/abwhose.go index 0de4a89..b9dd1e3 100644 --- a/abwhose.go +++ b/abwhose.go @@ -75,14 +75,15 @@ func getAbuseReportDetails(header, domain, query string) error { display() } } + if gotMatch { + return nil + } // None of the specific matchers hit so use a generic one - if !gotMatch { - found, display := fallbackEmailMatcher(header, domain, string(rawWhois)) - if found { - display() - return nil - } + found, display := fallbackEmailMatcher(header, domain, string(rawWhois)) + if found { + display() + return nil } fmt.Println(header)