mirror of
https://github.com/usememos/memos.git
synced 2025-03-09 03:53:23 +08:00
chore: tweak linter warning
This commit is contained in:
parent
07012e3f60
commit
06c460b476
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue