summaryrefslogtreecommitdiffstats
path: root/common/herrors
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-08-02 15:20:36 +0000
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-10 01:04:43 +0200
commite88d7989907108b656eccd92bccc076be72a5c03 (patch)
tree7a739f8d3debf252f1c804d08fe98965c95d0b5f /common/herrors
parentc0eef3b401615e85bb74baee6a515abcf531fc2c (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.go2
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
}