mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
tpl: Drop an else block in checkCondition
Fix golint warning: tpl/template_funcs.go:853:10: if block ends with a return statement, so drop this else and outdent its block See #2014
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
581291dc3b
commit
7665dd239e
@@ -850,9 +850,8 @@ func checkCondition(v, mv reflect.Value, op string) (bool, error) {
|
||||
return true, nil
|
||||
}
|
||||
return false, nil
|
||||
} else {
|
||||
return false, errors.New("invalid intersect values")
|
||||
}
|
||||
return false, errors.New("invalid intersect values")
|
||||
default:
|
||||
return false, errors.New("no such operator")
|
||||
}
|
||||
|
Reference in New Issue
Block a user