Skip to content

Commit

Permalink
parser:diff: remove needless workdir field
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Jul 26, 2020
1 parent 3d89d09 commit 00ea726
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions parser/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package parser
import (
"fmt"
"io"
"os"
"strings"

"github.com/reviewdog/reviewdog/diff"
Expand All @@ -16,14 +15,11 @@ var _ Parser = &DiffParser{}
// DiffParser is a unified diff parser.
type DiffParser struct {
strip int
wd string
}

// NewDiffParser creates a new DiffParser.
func NewDiffParser(strip int) *DiffParser {
p := &DiffParser{strip: strip}
p.wd, _ = os.Getwd()
return p
return &DiffParser{strip: strip}
}

// state data for a diagnostic.
Expand Down

0 comments on commit 00ea726

Please sign in to comment.