mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Fixed tautological error conditions
Drop error & nil checks where the value can not have changed.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
c0eef3b401
commit
e88d798990
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user