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:
bogem 2016-11-21 23:04:59 +01:00 committed by Bjørn Erik Pedersen
parent 581291dc3b
commit 7665dd239e

View file

@ -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")
}