dev: remove unused field from PathPrettifier (#4778)
This commit is contained in:
parent
e1a8055775
commit
3958f3924b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user