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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user