Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Dec 22, 2023
1 parent 1b7305f commit 5ff37bd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions database/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ func (e *engine) NewResources(ctx context.Context) error {
return err
}

// create the database agnostic engine for deployments
e.DeploymentInterface, err = deployment.New(
deployment.WithContext(e.ctx),
deployment.WithClient(e.client),
deployment.WithLogger(e.logger),
deployment.WithSkipCreation(e.config.SkipCreation),
)
if err != nil {
return err
}

// create the database agnostic engine for build_executables
e.BuildExecutableInterface, err = executable.New(
executable.WithContext(e.ctx),
Expand All @@ -48,17 +59,6 @@ func (e *engine) NewResources(ctx context.Context) error {
return err
}

// create the database agnostic engine for deployments
e.DeploymentInterface, err = deployment.New(
deployment.WithContext(e.ctx),
deployment.WithClient(e.client),
deployment.WithLogger(e.logger),
deployment.WithSkipCreation(e.config.SkipCreation),
)
if err != nil {
return err
}

// create the database agnostic engine for hooks
e.HookInterface, err = hook.New(
hook.WithContext(e.ctx),
Expand Down

0 comments on commit 5ff37bd

Please sign in to comment.