Skip to content

Commit

Permalink
Merge pull request #1084 from tetafro/master
Browse files Browse the repository at this point in the history
godot: fix issue with `--fix` flag
  • Loading branch information
ernado authored May 13, 2020
2 parents c88df8f + d7648bf commit 1ccecec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/golinters/godot.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ func NewGodot() *goanalysis.Linter {
res := make([]goanalysis.Issue, len(issues))
for k, i := range issues {
issue := result.Issue{
Pos: i.Pos,
Text: i.Message,
FromLinter: godotName,
Replacement: &result.Replacement{},
Pos: i.Pos,
Text: i.Message,
FromLinter: godotName,
}

res[k] = goanalysis.NewIssue(&issue, pass)
Expand Down

0 comments on commit 1ccecec

Please sign in to comment.