From e47bb5a0334a057c9c21200b4161e91bf7507ef7 Mon Sep 17 00:00:00 2001 From: chrismark Date: Thu, 1 Apr 2021 14:37:23 +0300 Subject: [PATCH] lint Signed-off-by: chrismark --- x-pack/elastic-agent/pkg/agent/transpiler/vars.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/elastic-agent/pkg/agent/transpiler/vars.go b/x-pack/elastic-agent/pkg/agent/transpiler/vars.go index 515efd2e2a3..e1818cdd160 100644 --- a/x-pack/elastic-agent/pkg/agent/transpiler/vars.go +++ b/x-pack/elastic-agent/pkg/agent/transpiler/vars.go @@ -109,9 +109,8 @@ func (v *Vars) lookupNode(name string) (Node, bool) { fval, found := fetchProvider.Fetch(name) if found { return &StrVal{value: fval}, true - } else { - return &StrVal{value: ""}, false } + return &StrVal{value: ""}, false } } // lookup in the AST tree