Skip to content

Commit 4e908f1

Browse files
committed
nit pick
1 parent 6cab806 commit 4e908f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

path-aware/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ type pathHook struct {
9898
func (p *pathHook) OnAdd(obj client.Object) {
9999
cluster := logicalcluster.From(obj)
100100

101-
path, ok := obj.GetAnnotations()[kcpcore.LogicalClusterPathAnnotationKey]
102-
if !ok || path == "" {
101+
path := obj.GetAnnotations()[kcpcore.LogicalClusterPathAnnotationKey]
102+
if path == "" {
103103
return
104104
}
105105

0 commit comments

Comments
 (0)