From 094d11d722eb0fd8fe69f01a0645ff2559b1623c Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 2 Apr 2021 01:58:06 +0200 Subject: [PATCH] Use a single line --- go/logic/server.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/go/logic/server.go b/go/logic/server.go index aa5b43a..749cc70 100644 --- a/go/logic/server.go +++ b/go/logic/server.go @@ -179,14 +179,11 @@ help # This message return NoPrintStatusRule, fmt.Errorf("coordinates are read-only") } case "hosts": - fields := map[string]interface{}{ - "Applier": this.migrationContext.GetApplierHostname(), - "Hostname": this.migrationContext.Hostname, - "Inspector": this.migrationContext.GetInspectorHostname(), - } - for key, val := range fields { - fmt.Fprintf(writer, "%s: %v", key, val) - } + fmt.Fprintf(writer, "Hostname: %s, Applier: %s, Inspector: %s\n", + this.migrationContext.GetApplierHostname(), + this.migrationContext.Hostname, + this.migrationContext.GetInspectorHostname(), + ) return NoPrintStatusRule, nil case "chunk-size": {