From 669974d6086a4012c26c4cb31873b74e737f46f0 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Wed, 14 Aug 2024 22:53:48 +0300 Subject: [PATCH] Fix the linter error --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 21c1f0a93..7d0d13d94 100644 --- a/config/config.go +++ b/config/config.go @@ -147,7 +147,7 @@ func loadConfigFile(config *ConfigStruct, silent bool) error { ConfigFilePath = cwdConfig } defer reader.Close() - + buf, err := io.ReadAll(reader) if err != nil { return err @@ -223,7 +223,7 @@ func mergeSetFlag(configElemValue reflect.Value, setValues []string) error { } if len(setErrors) > 0 { - return fmt.Errorf(strings.Join(setErrors, "\n")) + return errors.New(strings.Join(setErrors, "\n")) } return nil