dev: remove unused field from PathPrettifier (#4778)
This commit is contained in:
parent
e1a8055775
commit
3958f3924b
@ -1,7 +1,6 @@
|
|||||||
package processors
|
package processors
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/golangci/golangci-lint/pkg/fsutils"
|
"github.com/golangci/golangci-lint/pkg/fsutils"
|
||||||
@ -11,16 +10,10 @@ import (
|
|||||||
var _ Processor = (*PathPrettifier)(nil)
|
var _ Processor = (*PathPrettifier)(nil)
|
||||||
|
|
||||||
type PathPrettifier struct {
|
type PathPrettifier struct {
|
||||||
root string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewPathPrettifier() *PathPrettifier {
|
func NewPathPrettifier() *PathPrettifier {
|
||||||
root, err := fsutils.Getwd()
|
return &PathPrettifier{}
|
||||||
if err != nil {
|
|
||||||
panic(fmt.Sprintf("Can't get working dir: %s", err))
|
|
||||||
}
|
|
||||||
|
|
||||||
return &PathPrettifier{root: root}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (PathPrettifier) Name() string {
|
func (PathPrettifier) Name() string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user