summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-03-26 00:00:58 +0530
committerAndinus <andinus@nand.sh>2020-03-26 00:01:57 +0530
commit9173bb62242800b3fe14f888d25ad5d0cc75cbd8 (patch)
tree6bbcb14820056fd9158409a4bc8059e7c016bafc
parentc55368d4f45cafcc7efd7553fa4cb69360c64d6d (diff)
downloadcetus-9173bb62242800b3fe14f888d25ad5d0cc75cbd8.tar.gz
Fix dump logic
-rw-r--r--cmd/cetus/apod.go2
-rw-r--r--cmd/cetus/bpod.go2
2 files changed, 2 insertions, 2 deletions
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.