From 989d6341eeeddd46eaf016bacb89ad533211c0b8 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 25 Mar 2020 00:29:46 +0530 Subject: Rename dlAndCacheBody to dlAndCacheAPODBody to prevent conflict --- cmd/cetus/apod.go | 6 +++--- 1 file 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", -- cgit 1.4.1-2-gfad0