Skip to content

Commit

Permalink
k8s/watchers: omit unnecessary atomic store in (*K8sWatcher).namespac…
Browse files Browse the repository at this point in the history
…esInit

The default value of an atomic.Bool is already false.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
  • Loading branch information
tklauser committed Aug 31, 2023
1 parent 7e64fb6 commit e0b7e81
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/k8s/watchers/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func (k *K8sWatcher) namespacesInit() {
apiGroup := k8sAPIGroupNamespaceV1Core

var synced atomic.Bool
synced.Store(false)

k.blockWaitGroupToSyncResources(
k.stop,
Expand Down

0 comments on commit e0b7e81

Please sign in to comment.