Skip to content

Commit

Permalink
Merge pull request #57 from thaJeztah/gofumpt_all_the_things
Browse files Browse the repository at this point in the history
format code with gofumpt
  • Loading branch information
thaJeztah authored Jan 10, 2025
2 parents da2cb99 + 2695d2c commit aa95011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clidocstool.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func New(opts Options) (*Client, error) {
} else {
c.target = opts.TargetDir
}
if err := os.MkdirAll(c.target, 0755); err != nil {
if err := os.MkdirAll(c.target, 0o755); err != nil {
return nil, err
}
return c, nil
Expand Down
2 changes: 1 addition & 1 deletion clidocstool_md.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *Client) GenMarkdownTree(cmd *cobra.Command) error {
}); err != nil {
return err
}
if err = os.WriteFile(targetPath, icBuf.Bytes(), 0644); err != nil {
if err = os.WriteFile(targetPath, icBuf.Bytes(), 0o644); err != nil {
return err
}
} else if err := copyFile(sourcePath, targetPath); err != nil {
Expand Down

0 comments on commit aa95011

Please sign in to comment.