Skip to content

Commit 3958f39

Browse files
authored
dev: remove unused field from PathPrettifier (#4778)
1 parent e1a8055 commit 3958f39

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pkg/result/processors/path_prettifier.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package processors
22

33
import (
4-
"fmt"
54
"path/filepath"
65

76
"github.com/golangci/golangci-lint/pkg/fsutils"
@@ -11,16 +10,10 @@ import (
1110
var _ Processor = (*PathPrettifier)(nil)
1211

1312
type PathPrettifier struct {
14-
root string
1513
}
1614

1715
func NewPathPrettifier() *PathPrettifier {
18-
root, err := fsutils.Getwd()
19-
if err != nil {
20-
panic(fmt.Sprintf("Can't get working dir: %s", err))
21-
}
22-
23-
return &PathPrettifier{root: root}
16+
return &PathPrettifier{}
2417
}
2518

2619
func (PathPrettifier) Name() string {

0 commit comments

Comments
 (0)