Code cleanup
This commit is contained in:
parent
50f1f6cbd8
commit
b6e6e343d3
7
main.go
7
main.go
@ -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)
|
||||
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user