From 17826ee4342683e3bc5f49c625e0845431044e9b Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Fri, 9 Jun 2017 21:27:17 +0200 Subject: [PATCH] Go fmt run. --- pkg/cluster/resources.go | 1 - pkg/cluster/util.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/cluster/resources.go b/pkg/cluster/resources.go index d9318ed04..7fad9f3a1 100644 --- a/pkg/cluster/resources.go +++ b/pkg/cluster/resources.go @@ -281,7 +281,6 @@ func (c *Cluster) updateService(role PostgresRole, newService *v1.Service) error return nil } - func (c *Cluster) deleteService(role PostgresRole) error { c.logger.Debugf("Deleting service %s", role) if c.Service[role] == nil { diff --git a/pkg/cluster/util.go b/pkg/cluster/util.go index 71986aa57..42917fd24 100644 --- a/pkg/cluster/util.go +++ b/pkg/cluster/util.go @@ -63,10 +63,10 @@ func specPatch(spec interface{}) ([]byte, error) { }{spec}) } -func metadataAnnotationsPatch(annotations map[string]string) (string) { +func metadataAnnotationsPatch(annotations map[string]string) string { annotationsList := make([]string, 0, len(annotations)) - for name, value := range(annotations) { + for name, value := range annotations { annotationsList = append(annotationsList, fmt.Sprintf(`"%s":"%s"`, name, value)) } annotationsString := strings.Join(annotationsList, ",")