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{}
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