Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Dec 23, 2018
1 parent 50f1f6c commit b6e6e34
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var (
percpuLoad = false
widgetCount = 6
fahrenheit = false
configDir = getConfigDir()
configDir = appdir.New("gotop").UserConfig()
logPath = filepath.Join(configDir, "errors.log")
stderrLogger = log.New(os.Stderr, "", 0)

Expand Down Expand Up @@ -121,11 +121,6 @@ func handleColorscheme(cs string) error {
return nil
}

func getConfigDir() string {
dirs := appdir.New("gotop")
return dirs.UserConfig()
}

// getCustomColorscheme tries to read a custom json colorscheme from {configDir}/{name}.json
func getCustomColorscheme(name string) (colorschemes.Colorscheme, error) {
var colorscheme colorschemes.Colorscheme
Expand Down

0 comments on commit b6e6e34

Please sign in to comment.