Use filepath.Join rather than string concatenation

This commit is contained in:
Christian Rocha 2020-09-21 12:38:03 -04:00 committed by Christian Muehlhaeuser
commit 18e591bafe

View file

@ -2,11 +2,11 @@
package ui
import "os"
import "path/filepath"
func ignorePatterns(m model) []string {
return []string{
m.cfg.HomeDir + string(os.PathSeparator) + "Library",
filepath.Join(m.cfg.HomeDir, "Library"),
m.cfg.Gopath,
"node_modules",
".*",