From 9ccb20d7bafea210666ce986eda9c25ba2fef014 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 16 Apr 2024 17:47:20 +0300 Subject: [PATCH] dev: replace fmt.Errorf by errors.New (#4647) --- pkg/commands/config_verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/config_verify.go b/pkg/commands/config_verify.go index 4fc3cf05..a44050b5 100644 --- a/pkg/commands/config_verify.go +++ b/pkg/commands/config_verify.go @@ -47,7 +47,7 @@ func (c *configCommand) executeVerify(cmd *cobra.Command, _ []string) error { printValidationDetail(cmd, &detail) - return fmt.Errorf("the configuration contains invalid elements") + return errors.New("the configuration contains invalid elements") } return nil