From 7665dd239e825be83c0eabadb914f5859bb902af Mon Sep 17 00:00:00 2001 From: bogem Date: Mon, 21 Nov 2016 23:04:59 +0100 Subject: [PATCH] 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 --- tpl/template_funcs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tpl/template_funcs.go b/tpl/template_funcs.go index 9a2b52020..3e1b67706 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") }