From e88d7989907108b656eccd92bccc076be72a5c03 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 2 Aug 2019 15:20:36 +0000 Subject: Fixed tautological error conditions Drop error & nil checks where the value can not have changed. --- common/herrors/error_locator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/herrors') diff --git a/common/herrors/error_locator.go b/common/herrors/error_locator.go index 15de6d318..3778a3729 100644 --- a/common/herrors/error_locator.go +++ b/common/herrors/error_locator.go @@ -206,7 +206,7 @@ func locateError(r io.Reader, le FileError, matches LineMatcherFn) ErrorContext lines := strings.Split(string(b), "\n") - if le != nil && lepos.ColumnNumber >= 0 { + if lepos.ColumnNumber >= 0 { pos.ColumnNumber = lepos.ColumnNumber } -- cgit v1.2.3