From 2ce3e36220dbbf2a26079fbda49c3f8be35b515a Mon Sep 17 00:00:00 2001 From: kayomn Date: Mon, 2 Jan 2023 14:46:59 +0000 Subject: [PATCH] Tidy up CLI layer code --- main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index b1ccdec..9c89771 100644 --- a/main.go +++ b/main.go @@ -125,10 +125,9 @@ var commands = []Command{ var stringBuilder = strings.Builder{} for game, dataPath := range gameDataPaths { - stringBuilder.WriteString(game) - stringBuilder.WriteString(" \"") - stringBuilder.WriteString(dataPath) - stringBuilder.WriteByte('"') + if _, printError := fmt.Printf("%s %s\n", game, dataPath); printError != nil { + return "", printError + } } return stringBuilder.String(), nil