diff options
author | Andinus <andinus@nand.sh> | 2020-03-26 00:00:58 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-26 00:01:57 +0530 |
commit | 9173bb62242800b3fe14f888d25ad5d0cc75cbd8 (patch) | |
tree | 6bbcb14820056fd9158409a4bc8059e7c016bafc | |
parent | c55368d4f45cafcc7efd7553fa4cb69360c64d6d (diff) | |
download | cetus-9173bb62242800b3fe14f888d25ad5d0cc75cbd8.tar.gz |
Fix dump logic
-rw-r--r-- | cmd/cetus/apod.go | 2 | ||||
-rw-r--r-- | cmd/cetus/bpod.go | 2 |
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. |