Fixed tautological error conditions

Drop error & nil checks where the value can not have changed.
This commit is contained in:
Christian Muehlhaeuser
2019-08-02 15:20:36 +00:00
committed by Bjørn Erik Pedersen
parent c0eef3b401
commit e88d798990
3 changed files with 2 additions and 8 deletions

View File

@@ -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
}