From 8521b2036def3ae287bfd61710bf3f452d64bd74 Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Mon, 11 Jul 2016 22:27:13 +0200 Subject: [PATCH] Fix crash due to copy&paste error --- lint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint.go b/lint.go index c1816ab..f3e8ec1 100644 --- a/lint.go +++ b/lint.go @@ -425,7 +425,7 @@ func LintIfReturn(f *lint.File) { if !ok { return true } - if len(ret1.Results) != 1 { + if len(ret2.Results) != 1 { return true } if !f.IsBoolConst(ret2.Results[0]) {