Skip to content

Commit

Permalink
chore: fix remaining linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Aug 30, 2024
1 parent 8f38786 commit 516765d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 +422,14 @@ func exec() error {
for _, k := range sortedKeys(scope) {
v := scope[k]
err = writeStruct(file, v)

if err != nil {
return err
}
}

dirPath := filepath.Join(cfg.HandlerDir, fileName)

err = os.MkdirAll(dirPath, os.ModePerm)
err = os.MkdirAll(dirPath, dirMode)
if err != nil {
return err
}
Expand Down Expand Up @@ -562,7 +561,8 @@ func toSingle(src string) string {

const (
yamlTabSize = 2
writeMode = os.FileMode(0644)
writeMode = os.FileMode(0o644)
dirMode = os.FileMode(0o750)
)

// readConfig reads and formats the config
Expand Down

0 comments on commit 516765d

Please sign in to comment.