Skip to content

Commit

Permalink
refactor: remove an unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 21, 2025
1 parent feb29c2 commit 0dadc30
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions pkg/controller/vacuum/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,23 @@ package vacuum

import (
"context"
"io"
"os"

"github.com/aquaproj/aqua/v2/pkg/config"
"github.com/spf13/afero"
)

type Controller struct {
stdout io.Writer
Param *config.Param
fs afero.Fs
db *DB
Param *config.Param
fs afero.Fs
db *DB
}

// New initializes a Controller with the given context, parameters, and dependencies.
func New(ctx context.Context, param *config.Param, fs afero.Fs) *Controller {
vc := &Controller{
stdout: os.Stdout,
Param: param,
fs: fs,
db: NewDB(ctx, param, fs),
Param: param,
fs: fs,
db: NewDB(ctx, param, fs),
}
return vc
}

0 comments on commit 0dadc30

Please sign in to comment.