mirror of
https://github.com/usememos/memos.git
synced 2025-12-09 21:57:02 +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,14 +57,12 @@ 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")
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue