From 819057abfb5bd9ea3844fa03783000e8794c8b6f Mon Sep 17 00:00:00 2001 From: Gram Date: Fri, 23 Oct 2020 12:18:24 +0200 Subject: [PATCH] fix bug in types.Identical rule --- rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.go b/rules.go index b94342ba..999fe520 100644 --- a/rules.go +++ b/rules.go @@ -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 $$`)