MCPcopy Create free account
hub / github.com/brimdata/super / dedupe

Method dedupe

compiler/parser/parser.go:24702–24712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24700}
24701
24702func (e *errList) dedupe() {
24703 var cleaned []error
24704 set := make(map[string]bool)
24705 for _, err := range *e {
24706 if msg := err.Error(); !set[msg] {
24707 set[msg] = true
24708 cleaned = append(cleaned, err)
24709 }
24710 }
24711 *e = cleaned
24712}
24713
24714func (e errList) Error() string {
24715 switch len(e) {

Callers 1

errMethod · 0.95

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected