From 2ce125f7fc683596ca304557c656a275eb5c7e38 Mon Sep 17 00:00:00 2001 From: Oliver O'Mahony Date: Fri, 4 Oct 2024 14:24:23 +0100 Subject: [PATCH] bumped linting --- sdk/client/commander.go | 2 +- .../vendor/github.com/nginx/agent/sdk/v2/client/commander.go | 2 +- .../vendor/github.com/nginx/agent/sdk/v2/client/commander.go | 2 +- vendor/github.com/nginx/agent/sdk/v2/client/commander.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/client/commander.go b/sdk/client/commander.go index ed7862969b..985c288efb 100644 --- a/sdk/client/commander.go +++ b/sdk/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil diff --git a/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go b/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go index ed7862969b..985c288efb 100644 --- a/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go +++ b/test/integration/vendor/github.com/nginx/agent/sdk/v2/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil diff --git a/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go b/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go index ed7862969b..985c288efb 100644 --- a/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go +++ b/test/performance/vendor/github.com/nginx/agent/sdk/v2/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil diff --git a/vendor/github.com/nginx/agent/sdk/v2/client/commander.go b/vendor/github.com/nginx/agent/sdk/v2/client/commander.go index ed7862969b..985c288efb 100644 --- a/vendor/github.com/nginx/agent/sdk/v2/client/commander.go +++ b/vendor/github.com/nginx/agent/sdk/v2/client/commander.go @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI } if status.Status != proto.UploadStatus_OK { - return fmt.Error(status.Reason) + return fmt.Errorf("%s", status.Reason) } return nil