Go fmt run.

This commit is contained in:
Oleksii Kliukin 2017-06-09 21:27:17 +02:00 committed by Oleksii Kliukin
parent 51d73fb172
commit 17826ee434
2 changed files with 2 additions and 3 deletions

View File

@ -281,7 +281,6 @@ func (c *Cluster) updateService(role PostgresRole, newService *v1.Service) error
return nil return nil
} }
func (c *Cluster) deleteService(role PostgresRole) error { func (c *Cluster) deleteService(role PostgresRole) error {
c.logger.Debugf("Deleting service %s", role) c.logger.Debugf("Deleting service %s", role)
if c.Service[role] == nil { if c.Service[role] == nil {

View File

@ -63,10 +63,10 @@ func specPatch(spec interface{}) ([]byte, error) {
}{spec}) }{spec})
} }
func metadataAnnotationsPatch(annotations map[string]string) (string) { func metadataAnnotationsPatch(annotations map[string]string) string {
annotationsList := make([]string, 0, len(annotations)) 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)) annotationsList = append(annotationsList, fmt.Sprintf(`"%s":"%s"`, name, value))
} }
annotationsString := strings.Join(annotationsList, ",") annotationsString := strings.Join(annotationsList, ",")