We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a8055 commit 3958f39Copy full SHA for 3958f39
pkg/result/processors/path_prettifier.go
@@ -1,7 +1,6 @@
1
package processors
2
3
import (
4
- "fmt"
5
"path/filepath"
6
7
"github.com/golangci/golangci-lint/pkg/fsutils"
@@ -11,16 +10,10 @@ import (
11
10
var _ Processor = (*PathPrettifier)(nil)
12
13
type PathPrettifier struct {
14
- root string
15
}
16
17
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}
+ return &PathPrettifier{}
24
25
26
func (PathPrettifier) Name() string {
0 commit comments