Explorar o código

remove useless com

alteredCoder %!s(int64=3) %!d(string=hai) anos
pai
achega
28f13e4b82
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      cmd/crowdsec-cli/decisions.go

+ 0 - 2
cmd/crowdsec-cli/decisions.go

@@ -25,9 +25,7 @@ var Client *apiclient.ApiClient
 func DecisionsToTable(alerts *models.GetAlertsResponse) error {
 	/*here we cheat a bit : to make it more readable for the user, we dedup some entries*/
 	var spamLimit map[string]bool = make(map[string]bool)
-	/*process in reverse order to keep the latest item only*/
 
-	/*process in reverse order to keep the latest item only*/
 	for aIdx := 0; aIdx < len(*alerts); aIdx++ {
 		alertItem := (*alerts)[aIdx]
 		newDecisions := make([]*models.Decision, 0)