Tidy up CLI layer code

This commit is contained in:
kayomn 2023-01-02 14:46:59 +00:00
parent d44276a56e
commit 2ce3e36220
1 changed files with 3 additions and 4 deletions

View File

@ -125,10 +125,9 @@ var commands = []Command{
var stringBuilder = strings.Builder{} var stringBuilder = strings.Builder{}
for game, dataPath := range gameDataPaths { for game, dataPath := range gameDataPaths {
stringBuilder.WriteString(game) if _, printError := fmt.Printf("%s %s\n", game, dataPath); printError != nil {
stringBuilder.WriteString(" \"") return "", printError
stringBuilder.WriteString(dataPath) }
stringBuilder.WriteByte('"')
} }
return stringBuilder.String(), nil return stringBuilder.String(), nil