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

@@ -17,7 +17,7 @@ import (
"path/filepath"
"time"
"github.com/senorprogrammer/wtf/homedir"
"github.com/senorprogrammer/wtf/wtf"
"golang.org/x/net/context"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
@@ -29,7 +29,7 @@ import (
func Fetch() (*calendar.Events, error) {
ctx := context.Background()
secretPath, _ := homedir.Expand(Config.UString("wtf.mods.gcal.secretFile"))
secretPath, _ := wtf.ExpandHomeDir(Config.UString("wtf.mods.gcal.secretFile"))
b, err := ioutil.ReadFile(secretPath)
if err != nil {