1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Cleanup of stray files. Don't need so many single-use packages

This commit is contained in:
Chris Cummer
2018-04-18 17:51:43 -07:00
parent 5e186323e0
commit 12ef3919dc
9 changed files with 46 additions and 59 deletions

View File

@@ -6,7 +6,6 @@ import (
"time"
"github.com/olebedev/config"
"github.com/senorprogrammer/wtf/homedir"
"github.com/senorprogrammer/wtf/wtf"
)
@@ -54,7 +53,7 @@ func (widget *Widget) Refresh() {
/* -------------------- Uneported Functions -------------------- */
func (widget *Widget) readFile() (string, error) {
absPath, _ := homedir.Expand(widget.FilePath)
absPath, _ := wtf.ExpandHomeDir(widget.FilePath)
bytes, err := ioutil.ReadFile(absPath)
if err != nil {