Skip to content

Commit

Permalink
rename ConfigFile to File because config.ConfigFile stutters. Inste…
Browse files Browse the repository at this point in the history
…ad it's `config.File`
  • Loading branch information
barthr committed Oct 25, 2018
1 parent 93556a1 commit 8d8f1e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ var (
xdgRe = regexp.MustCompile("^XDG_*")
)

type ConfigFile struct {
type File struct {
Options map[string]string `toml:"options"`
Toggles map[string]bool `toml:"toggles"`
}

func exportConfig() ConfigFile {
c := ConfigFile{
func exportConfig() File {
c := File{
Options: make(map[string]string),
Toggles: make(map[string]bool),
}
Expand All @@ -33,7 +33,7 @@ func exportConfig() ConfigFile {
}

func Read() error {
var config ConfigFile
var config File

path, err := getConfigPath()
if err != nil {
Expand Down

0 comments on commit 8d8f1e7

Please sign in to comment.