commit 7665dd239e825be83c0eabadb914f5859bb902af
parent 581291dc3b84280432765a338dbc29ed338374e5
Author: bogem <albertnigma@gmail.com>
Date: Mon, 21 Nov 2016 23:04:59 +0100
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
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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")
}