Skip to content

Commit

Permalink
rules.go: fix bug in types.Identical rule (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium authored Oct 23, 2020
1 parent f9938c3 commit 4d26bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func gocriticDupArg(m fluent.Matcher) {
`bytes.Replace($_, $x, $x, $_)`,
`reflect.Copy($x, $x)`,
`reflect.DeepEqual($x, $x)`,
`types.Identical($x, $y)`,
`types.Identical($x, $x)`,
`io.Copy($x, $x)`,
`copy($x, $x)`).
Report(`suspicious duplicated args in $$`)
Expand Down

0 comments on commit 4d26bb9

Please sign in to comment.