From 1a268d28ccdd8997091a75f32a7ccaad4a63010c Mon Sep 17 00:00:00 2001 From: simitt Date: Thu, 11 Mar 2021 10:38:41 +0100 Subject: [PATCH] PR comment --- docker/apm-server/managed/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docker/apm-server/managed/main.go b/docker/apm-server/managed/main.go index 3f23ef99e..6304faaa3 100644 --- a/docker/apm-server/managed/main.go +++ b/docker/apm-server/managed/main.go @@ -44,9 +44,6 @@ func setupManagedAPM() error { if err != nil { return err } - if apmPkg == nil { - return errors.New("no apm package found") - } fmt.Println("apm package fetched") // define expected APM package policy @@ -189,7 +186,7 @@ func (client *kibanaClient) getAPMPackage() (*eprPackage, error) { return &apm.Package, err } - return nil, nil + return nil, errors.New("no apm package found") } func (client *kibanaClient) getAgentPolicies(query string) ([]agentPolicy, error) {