mirror of
https://github.com/usememos/memos.git
synced 2025-02-21 05:40:57 +01:00
chore: tweak linter warning
This commit is contained in:
parent
07012e3f60
commit
06c460b476
@ -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…
x
Reference in New Issue
Block a user