Skip to content

Commit

Permalink
fix go vet issue
Browse files Browse the repository at this point in the history
Signed-off-by: MUzairS15 <[email protected]>
  • Loading branch information
MUzairS15 committed Sep 19, 2024
1 parent ff1a74d commit 41c07af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/walker/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"
"sync"

"errors"
"github.com/sirupsen/logrus"
)

Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 41c07af

Please sign in to comment.