From 9173bb62242800b3fe14f888d25ad5d0cc75cbd8 Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 26 Mar 2020 00:00:58 +0530 Subject: Fix dump logic --- cmd/cetus/apod.go | 2 +- cmd/cetus/bpod.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/cetus/apod.go b/cmd/cetus/apod.go index 175d7a1..4970f79 100644 --- a/cmd/cetus/apod.go +++ b/cmd/cetus/apod.go @@ -66,7 +66,7 @@ func execAPOD() { } if dump { - fmt.Printf(body) + fmt.Println(body) } res := apod.APOD{} diff --git a/cmd/cetus/bpod.go b/cmd/cetus/bpod.go index 0c5b7cf..160f9ae 100644 --- a/cmd/cetus/bpod.go +++ b/cmd/cetus/bpod.go @@ -108,7 +108,7 @@ func execBPOD() { file = fmt.Sprintf("%s/%s.json", cacheDir, res.StartDate) if dump { - fmt.Printf(body) + fmt.Println(body) } // Send a desktop notification if notify flag was passed. -- cgit 1.4.1-2-gfad0