Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: yangw <[email protected]>
  • Loading branch information
drivebyer committed Dec 21, 2024
1 parent dd7b7be commit 28d7215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/redis/redis_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ var _ = Describe("Redis Controller", func() {
var exporterContainer *corev1.Container
for _, container := range sts.Spec.Template.Spec.Containers {
if container.Name == "redis-exporter" {
exporterContainer = &container
exporterContainer = &container //nolint:exportloopref
break
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ var _ = Describe("Redis Cluster Controller", func() {
var exporterContainer *corev1.Container
for _, c := range leaderSts.Spec.Template.Spec.Containers {
if c.Name == "redis-exporter" {
exporterContainer = &c
exporterContainer = &c //nolint:exportloopref
break
}
}
Expand Down

0 comments on commit 28d7215

Please sign in to comment.