Commit 06c460b4 authored by Steven's avatar Steven

chore: tweak linter warning

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