Skip to content

Commit

Permalink
Merge pull request #591 from MUzairS15/k8s-export
Browse files Browse the repository at this point in the history
fix lint issue
  • Loading branch information
Mohd Uzair authored Sep 19, 2024
2 parents 7033f62 + 41c07af commit 535031d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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
2 changes: 1 addition & 1 deletion validator/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

var (
ErrValidateCode = ""
schemaPath = "components.schemas"
_ = "components.schemas"
cueschema cue.Value
mx sync.Mutex
isSchemaLoaded bool
Expand Down

0 comments on commit 535031d

Please sign in to comment.