From 41c07af3523562f81914b4e499b9fccc321d9dd5 Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Thu, 19 Sep 2024 15:37:21 +0530 Subject: [PATCH] fix go vet issue Signed-off-by: MUzairS15 --- utils/walker/github.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/walker/github.go b/utils/walker/github.go index 085c0952..bd58eaf5 100644 --- a/utils/walker/github.go +++ b/utils/walker/github.go @@ -7,7 +7,7 @@ import ( "path/filepath" "strings" "sync" - + "errors" "github.com/sirupsen/logrus" ) @@ -164,8 +164,7 @@ func (g *Github) walker(path string, isFile bool) error { if !ok { return fmt.Errorf("[GithubWalker]: GithubAPI responded with: forbidden") } - - return fmt.Errorf(message) + return errors.New(message) } return fmt.Errorf("file not found") }