From 47ec72bfc6eec2758860c565296998bc637a699d Mon Sep 17 00:00:00 2001 From: Sylvain Baubeau Date: Mon, 30 Oct 2023 18:36:35 +0100 Subject: [PATCH] Remove unused logger attribute in amazon detector --- pkg/detector/ospkg/amazon/amazon.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/detector/ospkg/amazon/amazon.go b/pkg/detector/ospkg/amazon/amazon.go index c1d92ef03b6e..5d28dce0a17e 100644 --- a/pkg/detector/ospkg/amazon/amazon.go +++ b/pkg/detector/ospkg/amazon/amazon.go @@ -5,7 +5,6 @@ import ( "time" version "github.com/knqyf263/go-deb-version" - "go.uber.org/zap" "golang.org/x/xerrors" "k8s.io/utils/clock" @@ -30,7 +29,6 @@ var ( type options struct { clock clock.Clock - l *zap.SugaredLogger } type option func(*options) @@ -50,7 +48,6 @@ type Scanner struct { // NewScanner is the factory method to return Amazon scanner func NewScanner(opts ...option) *Scanner { o := &options{ - l: log.Logger, clock: clock.RealClock{}, }