Skip to content

Commit

Permalink
dev: remove unused field from PathPrettifier (#4778)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed May 30, 2024
1 parent e1a8055 commit 3958f39
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/result/processors/path_prettifier.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package processors

import (
"fmt"
"path/filepath"

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

type PathPrettifier struct {
root string
}

func NewPathPrettifier() *PathPrettifier {
root, err := fsutils.Getwd()
if err != nil {
panic(fmt.Sprintf("Can't get working dir: %s", err))
}

return &PathPrettifier{root: root}
return &PathPrettifier{}
}

func (PathPrettifier) Name() string {
Expand Down

0 comments on commit 3958f39

Please sign in to comment.