Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 16, 2024
1 parent 6af4f5d commit 029eec8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions internal/storage/postgres/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,8 @@ func migrateDatabase(ctx context.Context, db *database.Bun) error {
}
defer migrator.Unlock(ctx) //nolint:errcheck

group, err := migrator.Migrate(ctx)
if err != nil {
return err
}
if group.IsZero() {
return nil
}
return nil
_, err := migrator.Migrate(ctx)
return err
}

func (s Storage) Close() error {
Expand Down

0 comments on commit 029eec8

Please sign in to comment.