summary refs log tree commit diff stats
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/getdir_darwin.go4
-rw-r--r--cache/getdir_unix.go2
2 files changed, 3 insertions, 3 deletions
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