Skip to content

Commit

Permalink
fix: fix slice init length (botlabs-gg#1734)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang authored and galen8183 committed Nov 12, 2024
1 parent ee4438f commit 40e4680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antiphishing/antiphishing.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func queryPhishingLinks(input []string) (string, error) {
return "", err
}

badDomains := make([]string, len(bitflowAntifishResponse.Matches))
badDomains := make([]string, 0, len(bitflowAntifishResponse.Matches))
if bitflowAntifishResponse.Match {
for _, match := range bitflowAntifishResponse.Matches {
// only flag domains which have a low trust rating, this varies between 0 and 1, 0 means high trust, 1 means no trust.
Expand Down

0 comments on commit 40e4680

Please sign in to comment.