Skip to content

Commit

Permalink
style: run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiyu committed May 18, 2023
1 parent 538aab5 commit db62827
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmd/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ func (m *metaCmd) init() error {
cfgRoot := filepath.Join(os.Getenv("HOME"), ".config", "afx")
cache := filepath.Join(root, "cache.json")

err := config.CreateDirIfNotExist(cfgRoot)
if err != nil {
return errors.Wrapf(err, "%s: failed to create dir", cfgRoot)
}
err := config.CreateDirIfNotExist(cfgRoot)
if err != nil {
return errors.Wrapf(err, "%s: failed to create dir", cfgRoot)
}
files, err := config.WalkDir(cfgRoot)
if err != nil {
return errors.Wrapf(err, "%s: failed to walk dir", cfgRoot)
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func CreateDirIfNotExist(path string) error {
if os.IsNotExist(err) {
return os.MkdirAll(path, 0755)
} else if err != nil {
return err
}
return err
}
return nil
}

Expand Down

0 comments on commit db62827

Please sign in to comment.