mirror of
https://github.com/usememos/memos.git
synced 2025-03-09 20:13:46 +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")
|
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
|
||||||
|
|
Loading…
Reference in a new issue