summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cetus/bpod.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/cmd/cetus/bpod.go b/cmd/cetus/bpod.go
index 160f9ae..39f6d0b 100644
--- a/cmd/cetus/bpod.go
+++ b/cmd/cetus/bpod.go
@@ -88,10 +88,11 @@ func execBPOD() {
 		}
 
 	}
-	// Unmarshal before dump because otherwise if we come across
-	// the date for the first time then it would just dump and
-	// exit without saving it to cache. This way we first save it
-	// to cache if *bpodRand is true.
+
+	if dump {
+		fmt.Println(body)
+	}
+
 	res, err := bpod.UnmarshalJson(body)
 	if err != nil {
 		log.Fatal(err)
@@ -107,10 +108,6 @@ func execBPOD() {
 
 	file = fmt.Sprintf("%s/%s.json", cacheDir, res.StartDate)
 
-	if dump {
-		fmt.Println(body)
-	}
-
 	// Send a desktop notification if notify flag was passed.
 	if notify {
 		n := notification.Notif{}