Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 3, 2021
1 parent c2df918 commit d572ece
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/packages/util.go
Expand Up @@ -2,14 +2,11 @@ package packages

import (
"fmt"
"regexp"
"strings"

"golang.org/x/tools/go/packages"
)

var reFile = regexp.MustCompile(`^.+\.go:\d+:\d+: .+`)

func ExtractErrors(pkg *packages.Package) []packages.Error {
errors := extractErrorsImpl(pkg, map[*packages.Package]bool{})
if len(errors) == 0 {
Expand Down Expand Up @@ -92,9 +89,5 @@ func stackCrusher(msg string) string {

frag := msg[index+1 : lastIndex]

if !reFile.MatchString(frag) {
return msg
}

return stackCrusher(frag)
}

0 comments on commit d572ece

Please sign in to comment.