Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
rliebz committed Apr 27, 2021
1 parent dc5ef4c commit 4d7f753
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions runner/file.go
Expand Up @@ -5,23 +5,6 @@ import (
"path/filepath"
)

const folderName = "tusk"

// DataHome returns the XDG data home. It may or may not already exist.
func DataHome() (string, error) {
if xdgHome := os.Getenv("XDG_DATA_HOME"); xdgHome != "" {
// TODO: This should be filepath.Join(xdgHome, folderName)
return xdgHome, nil
}

homedir, err := os.UserHomeDir()
if err != nil {
return "", err
}

return filepath.Join(homedir, ".local", "share", folderName), nil
}

var defaultFiles = []string{"tusk.yml", "tusk.yaml"}

// searchForFile checks the working directory and every parent directory to
Expand Down

0 comments on commit 4d7f753

Please sign in to comment.