Commit 06c460b4 authored by Steven's avatar Steven

chore: tweak linter warning

parent 07012e3f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment