Skip to content

Commit b48ad7f

Browse files
committed
Rename arguments for clarity and ensure correct usage
1 parent f77cc0b commit b48ad7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/certification/certificates.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (c *Certificates) handleDeleteEvent(obj interface{}) {
176176
logrus.Debugf("Certificates::handleDeleteEvent: certificates (%d)", len(c.Certificates))
177177
}
178178

179-
func (c *Certificates) handleUpdateEvent(oldValue interface{}, newValue interface{}) {
179+
func (c *Certificates) handleUpdateEvent(_ interface{}, newValue interface{}) {
180180
logrus.Debug("Certificates::handleUpdateEvent")
181181

182182
secret, ok := newValue.(*corev1.Secret)

internal/configuration/settings.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ func (s *Settings) handleDeleteEvent(obj interface{}) {
266266
}
267267
}
268268

269-
func (s *Settings) handleUpdateEvent(_ interface{}, obj interface{}) {
269+
func (s *Settings) handleUpdateEvent(_ interface{}, newValue interface{}) {
270270
logrus.Debug("Settings::handleUpdateEvent")
271271

272-
configMap, yes := isOurConfig(obj)
272+
configMap, yes := isOurConfig(newValue)
273273
if !yes {
274274
return
275275
}

0 commit comments

Comments
 (0)