Explorar o código

Remove unused variable and imports

fixup! Remove unused variable and imports
prplecake %!s(int64=2) %!d(string=hai) anos
pai
achega
42263ce7a0
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      config.go

+ 1 - 4
config.go

@@ -3,14 +3,13 @@ package main
 import (
 	"log"
 	"os"
-	"os/user"
 	"time"
 
 	"gopkg.in/yaml.v2"
 )
 
 var (
-	dir, configFile string
+	configFile string
 )
 
 type feed struct {
@@ -34,8 +33,6 @@ type account struct {
 }
 
 func readConfig(fileName string) *config {
-	usr, _ := user.Current()
-	dir = usr.HomeDir
 	log.Println("reading config...")
 	configFile = fileName
 	config := new(config)