dev: remove unused field from PathPrettifier (#4778)

This commit is contained in:
Oleksandr Redko 2024-05-30 19:01:21 +03:00 committed by GitHub
parent e1a8055775
commit 3958f3924b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,6 @@
package processors
import (
"fmt"
"path/filepath"
"github.com/golangci/golangci-lint/pkg/fsutils"
@ -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 {