Skip to content

Commit bb50a4f

Browse files
committed
linter
1 parent d112a4f commit bb50a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/filters/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func updateService(ctx *synccontext.SyncContext, req *http.Request, decoder enco
146146
// okay now we have to change the physical service
147147
pService := &corev1.Service{}
148148
pServiceName := mappings.VirtualToHost(ctx, oldVService.Name, oldVService.Namespace, mappings.Services())
149-
err = ctx.PhysicalClient.Get(ctx, client.ObjectKey{Namespace: pServiceName.Namespace, Name: pServiceName.Name}, pService)
149+
err = ctx.PhysicalClient.Get(ctx, client.ObjectKey(pServiceName), pService)
150150
if err != nil {
151151
if kerrors.IsNotFound(err) {
152152
return nil, kerrors.NewNotFound(corev1.Resource("services"), oldVService.Name)

0 commit comments

Comments
 (0)