Tidy up CLI layer code
This commit is contained in:
parent
d44276a56e
commit
2ce3e36220
7
main.go
7
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
|
||||
|
|
Loading…
Reference in New Issue