From: bogem Date: Mon, 21 Nov 2016 22:04:59 +0000 (+0100) Subject: tpl: Drop an else block in checkCondition X-Git-Tag: v0.18~65 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7665dd239e825be83c0eabadb914f5859bb902af;p=brevno-suite%2Fhugo 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 --- diff --git a/tpl/template_funcs.go b/tpl/template_funcs.go index 9a2b5202..3e1b6770 100644 --- a/tpl/template_funcs.go +++ b/tpl/template_funcs.go @@ -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") }