Skip to content

Commit

Permalink
godot: fix issue with --fix flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed May 13, 2020
1 parent c88df8f commit d7648bf
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 d7648bf

Please sign in to comment.