From 0dadc3032bd304069932f8c2ffd8143b92460118 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Tue, 21 Jan 2025 21:57:39 +0900 Subject: [PATCH] refactor: remove an unused field --- pkg/controller/vacuum/controller.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pkg/controller/vacuum/controller.go b/pkg/controller/vacuum/controller.go index a2495215f..e9520d582 100644 --- a/pkg/controller/vacuum/controller.go +++ b/pkg/controller/vacuum/controller.go @@ -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 }