From 3ee3715ae7777dd6c1804974e2e293406fd1fe54 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 25 Mar 2020 00:13:51 +0530 Subject: Add apod support & fix errors --- cache/getdir_darwin.go | 4 ++-- cache/getdir_unix.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cache') diff --git a/cache/getdir_darwin.go b/cache/getdir_darwin.go index fc47e7e..733e94e 100644 --- a/cache/getdir_darwin.go +++ b/cache/getdir_darwin.go @@ -10,13 +10,13 @@ import ( // GetDir returns cetus cache directory. Default cache directory on // macOS is $HOME/Library/Caches. func GetDir() string { - cacheDir = fmt.Sprintf("%s/%s/%s", + cacheDir := fmt.Sprintf("%s/%s/%s", os.Getenv("HOME"), "Library", "Caches") // Cetus cache directory is cacheDir/cetus - cetusCacheDir = fmt.Sprintf("%s/%s", cacheDir, + cetusCacheDir := fmt.Sprintf("%s/%s", cacheDir, "cetus") return cetusCacheDir diff --git a/cache/getdir_unix.go b/cache/getdir_unix.go index b1358d7..62dd5ed 100644 --- a/cache/getdir_unix.go +++ b/cache/getdir_unix.go @@ -22,7 +22,7 @@ func GetDir() string { } // Cetus cache directory is cacheDir/cetus. - cetusCacheDir = fmt.Sprintf("%s/%s", cacheDir, + cetusCacheDir := fmt.Sprintf("%s/%s", cacheDir, "cetus") return cetusCacheDir -- cgit 1.4.1-2-gfad0