Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cgxeiji committed Nov 5, 2018
1 parent 510574d commit b84df20
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@ func initConfig() {
fmt.Println("Configuration file used:", viper.ConfigFileUsed())
}

dl := viper.Sub("LIBRARIES").GetString(
viper.GetString("GENERAL.default"))

dlex, err := homedir.Expand(dl)
if err != nil {
panic(err)
}

viper.Set("deflib", dlex)

for k, v := range viper.GetStringMapString("LIBRARIES") {
vex, err := homedir.Expand(v)
if err != nil {
Expand Down Expand Up @@ -173,7 +163,7 @@ func initConfig() {
fmt.Println("Types file used:", et.ConfigFileUsed())
}

err = scholar.LoadTypes(et.ConfigFileUsed())
err := scholar.LoadTypes(et.ConfigFileUsed())
if err != nil {
panic(err)
}
Expand Down

0 comments on commit b84df20

Please sign in to comment.