Skip to content

Commit

Permalink
[chore] lint fix in cmd/checkapi
Browse files Browse the repository at this point in the history
  • Loading branch information
led0nk committed Mar 12, 2024
1 parent bf40162 commit a0eeaa8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/checkapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ func run(folder string, allowlistFilePath string) error {
}
allowlist := strings.Split(string(allowlistData), "\n")
var errs []error
err = filepath.Walk(folder, func(path string, info fs.FileInfo, err error) error {
err = filepath.Walk(folder, func(path string, info fs.FileInfo, _ error) error {
if info.Name() == "go.mod" {
base := filepath.Dir(path)
relativeBase, err := filepath.Rel(folder, base)
var relativeBase string
relativeBase, err = filepath.Rel(folder, base)
if err != nil {
return err
}
Expand All @@ -67,7 +68,7 @@ func run(folder string, allowlistFilePath string) error {
return nil
}
}
if err := walkFolder(base, componentType); err != nil {
if err = walkFolder(base, componentType); err != nil {
errs = append(errs, err)
}
}
Expand Down

0 comments on commit a0eeaa8

Please sign in to comment.