Skip to content

Commit

Permalink
fix boards config loading from file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrados7 committed Jan 13, 2024
1 parent 20b96c7 commit 1a85d5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/checkout/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type board struct {

type config struct {
BranchTypes []branchType `json:"branchTypes"`
boards []board `json:"boards"`
Boards []board `json:"boards"`
}

const configFile = ".git-commands.json"
Expand Down Expand Up @@ -69,7 +69,7 @@ func loadConfigFile(path string) ([]list.Item, []list.Item, error) {
if err := json.Unmarshal(data, &c); err != nil {
return nil, nil, fmt.Errorf("error parsing config file: %w", err)
}
return convertBranchTypes(c.BranchTypes), convertBoards(c.boards), nil
return convertBranchTypes(c.BranchTypes), convertBoards(c.Boards), nil
}

func loadConfig() ([]list.Item, []list.Item, error) {
Expand Down

0 comments on commit 1a85d5f

Please sign in to comment.