Code linting

This commit is contained in:
Manuel de Brito Fontes 2017-06-14 19:49:35 -04:00
parent aa8c66ec01
commit 45c77a951d
4 changed files with 6 additions and 11 deletions

View file

@ -92,10 +92,7 @@ type affinity struct {
// ParseAnnotations parses the annotations contained in the ingress
// rule used to configure the affinity directives
func (a affinity) Parse(ing *extensions.Ingress) (interface{}, error) {
var cookieAffinityConfig *CookieConfig
cookieAffinityConfig = &CookieConfig{}
cookieAffinityConfig := &CookieConfig{}
// Check the type of affinity that will be used
at, err := parser.GetStringAnnotation(annotationAffinityType, ing)
if err != nil {