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

@ -72,7 +72,7 @@ func newAnnotationExtractor(cfg extractorConfig) annotationExtractor {
}
func (e *annotationExtractor) Extract(ing *extensions.Ingress) map[string]interface{} {
anns := make(map[string]interface{}, 0)
anns := make(map[string]interface{})
for name, annotationParser := range e.annotations {
val, err := annotationParser.Parse(ing)
glog.V(5).Infof("annotation %v in Ingress %v/%v: %v", name, ing.GetNamespace(), ing.GetName(), val)