diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-08-02 15:20:36 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-10 01:04:43 +0200 |
commit | e88d7989907108b656eccd92bccc076be72a5c03 (patch) | |
tree | 7a739f8d3debf252f1c804d08fe98965c95d0b5f /common/herrors | |
parent | c0eef3b401615e85bb74baee6a515abcf531fc2c (diff) |
Fixed tautological error conditions
Drop error & nil checks where the value can not have changed.
Diffstat (limited to 'common/herrors')
-rw-r--r-- | common/herrors/error_locator.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |