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

23 lines
501 B
Go
Raw 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
}