summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-03-25 00:29:46 +0530
committerAndinus <andinus@nand.sh>2020-03-25 00:29:46 +0530
commit989d6341eeeddd46eaf016bacb89ad533211c0b8 (patch)
treea4e5763efe9a47db968e027fd0eb69b93aac555c /cmd
parentf5bf0978d4cc77203482a0350622ef255f6609fb (diff)
downloadcetus-989d6341eeeddd46eaf016bacb89ad533211c0b8.tar.gz
Rename dlAndCacheBody to dlAndCacheAPODBody to prevent conflict
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cetus/apod.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/cetus/apod.go b/cmd/cetus/apod.go
index c1af115..94fb36b 100644
--- a/cmd/cetus/apod.go
+++ b/cmd/cetus/apod.go
@@ -56,12 +56,12 @@ func execAPOD() {
 				"apod.go: failed to read file to data: ", file,
 				err.Error())
 			log.Println(err)
-			dlAndCacheBody()
+			dlAndCacheAPODBody()
 		}
 		body = string(data)
 
 	} else if os.IsNotExist(err) {
-		dlAndCacheBody()
+		dlAndCacheAPODBody()
 
 	} else {
 		// If file existed then that is handled by the if
@@ -152,7 +152,7 @@ func execAPOD() {
 	}
 }
 
-func dlAndCacheBody() {
+func dlAndCacheAPODBody() {
 	body, err = apod.GetJson(reqInfo)
 	if err != nil {
 		err = fmt.Errorf("%s\n%s",