From 7489ee50c0b4f62ccabbc48e0d2e3c5c7564b21e Mon Sep 17 00:00:00 2001 From: Alex Tymchuk Date: Wed, 20 Sep 2023 15:54:30 +0000 Subject: [PATCH] PMM-12375 fix linter warnings --- agent/runner/jobs/pbm_helpers.go | 2 +- agent/serviceinfobroker/service_info_broker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/runner/jobs/pbm_helpers.go b/agent/runner/jobs/pbm_helpers.go index b8f5777c8b4..ff87858da2e 100644 --- a/agent/runner/jobs/pbm_helpers.go +++ b/agent/runner/jobs/pbm_helpers.go @@ -279,7 +279,7 @@ func waitForPBMBackup(ctx context.Context, l logrus.FieldLogger, dbURL *string, return nil case "canceled": return errors.New("backup was canceled") - case "error": //nolint:goconst + case "error": return errors.New(info.Error) } diff --git a/agent/serviceinfobroker/service_info_broker.go b/agent/serviceinfobroker/service_info_broker.go index d22bcd5b9a2..1b2c7819fe9 100644 --- a/agent/serviceinfobroker/service_info_broker.go +++ b/agent/serviceinfobroker/service_info_broker.go @@ -83,7 +83,7 @@ func (sib *ServiceInfoBroker) GetInfoFromService(ctx context.Context, msg *agent } } -func (sib *ServiceInfoBroker) getMySQLInfo(ctx context.Context, dsn string, files *agentpb.TextFiles, id uint32) *agentpb.ServiceInfoResponse { //nolint:lll +func (sib *ServiceInfoBroker) getMySQLInfo(ctx context.Context, dsn string, files *agentpb.TextFiles, id uint32) *agentpb.ServiceInfoResponse { var res agentpb.ServiceInfoResponse var err error