Skip to content

Commit

Permalink
Fix eroneous not found message when matcher hits
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Kemp committed Apr 13, 2020
1 parent 3bf9ac6 commit 1348357
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions abwhose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1348357

Please sign in to comment.