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{}
|
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
|
||||||
|
|
Loading…
Reference in New Issue