From bf859ff06662ec2f5e44278adee3a729bd079454 Mon Sep 17 00:00:00 2001 From: RinkiyaKeDad Date: Thu, 22 Apr 2021 21:02:08 +0530 Subject: [PATCH] fixed extra line at the end of json output Signed-off-by: RinkiyaKeDad --- cmd/cycles.go | 2 +- cmd/stats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cycles.go b/cmd/cycles.go index 0a44cdf..d09f967 100644 --- a/cmd/cycles.go +++ b/cmd/cycles.go @@ -54,7 +54,7 @@ var cyclesCmd = &cobra.Command{ if err != nil { return err } - fmt.Println(string(outputRaw)) + fmt.Print(string(outputRaw)) } return nil }, diff --git a/cmd/stats.go b/cmd/stats.go index c2cf01d..7c30e95 100644 --- a/cmd/stats.go +++ b/cmd/stats.go @@ -88,7 +88,7 @@ var statsCmd = &cobra.Command{ if err != nil { return err } - fmt.Println(string(outputRaw)) + fmt.Print(string(outputRaw)) } return nil },