From bc899dd98e2dc04783412a8b4a8a3f97660bc9bb Mon Sep 17 00:00:00 2001 From: D074096 Date: Tue, 5 Apr 2022 16:27:23 +0200 Subject: [PATCH] Fix lints --- esx/runnable.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esx/runnable.go b/esx/runnable.go index 01ab44b..1d12eb2 100644 --- a/esx/runnable.go +++ b/esx/runnable.go @@ -296,8 +296,7 @@ func (r *Runnable) deleteAnnotation(ctx context.Context, node *v1.Node, key stri if node.Annotations == nil { return nil } - _, ok := node.Annotations[key] - if !ok { + if _, ok := node.Annotations[key]; !ok { return nil } cloned := node.DeepCopy()