diff options
-rw-r--r-- | cmd/cetus/apod.go | 6 |
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", |