chore: tweak linter warning

This commit is contained in:
Steven 2024-08-16 08:15:59 +08:00
parent 07012e3f60
commit 06c460b476

View File

@ -57,12 +57,10 @@ func (s *Store) Migrate(ctx context.Context) error {
}
fmt.Println("end migrate")
}
} else {
} else if s.Profile.Mode == "demo" {
// In demo mode, we should seed the database.
if s.Profile.Mode == "demo" {
if err := s.seed(ctx); err != nil {
return errors.Wrap(err, "failed to seed")
}
if err := s.seed(ctx); err != nil {
return errors.Wrap(err, "failed to seed")
}
}
return nil