Skip to content

Commit

Permalink
Remove unused parameter (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany authored Jul 23, 2024
1 parent ad9419e commit 9c35488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ee/agent/storage/sqlite/keyvalue_store_sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func OpenRW(ctx context.Context, rootDirectory string, name storeName) (*sqliteS
tableName: name.String(),
}

if err := s.migrate(ctx); err != nil {
if err := s.migrate(); err != nil {
s.Close()
return nil, fmt.Errorf("migrating the database: %w", err)
}
Expand Down Expand Up @@ -169,7 +169,7 @@ func dbLocation(rootDirectory string) string {
}

// migrate makes sure that the database schema is correct.
func (s *sqliteStore) migrate(ctx context.Context) error {
func (s *sqliteStore) migrate() error {
d, err := iofs.New(migrations, "migrations")
if err != nil {
return fmt.Errorf("loading migration files: %w", err)
Expand Down

0 comments on commit 9c35488

Please sign in to comment.