1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-30 12:11:15 +00:00
sii/cmd/save-clean/cleaner.go

23 lines
501 B
Go
Raw Permalink Normal View History

package main
import (
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/Luzifer/sii"
)
func cleanSaveGame(baseGameUnit, saveGame *sii.Unit) error {
log.Info("Cleaning companies...")
if err := cleanCompanies(baseGameUnit, saveGame); err != nil {
return errors.Wrap(err, "Unable to cleanup companies")
}
log.Info("Cleaning garages...")
if err := cleanGarages(baseGameUnit, saveGame); err != nil {
return errors.Wrap(err, "Unable to cleanup garages")
}
return nil
}