Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
mesuutt committed Jun 25, 2023
1 parent be87afc commit 3a6f050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/command/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func AddCmdAction(ctx *cli.Context) error {
return nil
}

conf, err := config.ReadConfig(filepath.Join(statRepoPath, "config.toml"))
conf, err := config.Read(filepath.Join(statRepoPath, "config.toml"))
if err != nil {
// print error and continue with defaults when cannot read config file.
fmt.Printf("config file read err. Running with defaults. err: %v\n", err)
Expand Down
2 changes: 1 addition & 1 deletion internal/config/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/pelletier/go-toml/v2"
)

func ReadConfig(path string) (*Config, error) {
func Read(path string) (*Config, error) {
bytes, err := os.ReadFile(path)
if err != nil {
return nil, err
Expand Down

0 comments on commit 3a6f050

Please sign in to comment.