Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero authored and cuiweiyuan committed Jan 15, 2025
2 parents d7a5ff1 + 3826554 commit fee3c03
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pkg/subnet/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"path/filepath"
"regexp"
"slices"
"strings"

"github.com/ava-labs/avalanche-cli/pkg/ux"
Expand Down Expand Up @@ -120,11 +121,5 @@ func removeTimestamp(s string) string {
// if an error has already been found, we should not print it again
func alreadyFound(s string, found []string) bool {
log := removeTimestamp(s)
for _, f := range found {
// this is a pretty strict requirement, but probably justified
if f == log {
return true
}
}
return false
return slices.Contains(found, log)
}

0 comments on commit fee3c03

Please sign in to comment.