mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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:
parent
581291dc3b
commit
7665dd239e
1 changed files with 1 additions and 2 deletions
|
@ -850,9 +850,8 @@ func checkCondition(v, mv reflect.Value, op string) (bool, error) {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
} else {
|
|
||||||
return false, errors.New("invalid intersect values")
|
|
||||||
}
|
}
|
||||||
|
return false, errors.New("invalid intersect values")
|
||||||
default:
|
default:
|
||||||
return false, errors.New("no such operator")
|
return false, errors.New("no such operator")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue