We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87159b9 commit 1fe36ffCopy full SHA for 1fe36ff
pkg/output/output.go
@@ -44,12 +44,13 @@ func (o *Result) Printed(result string) bool {
44
return true
45
}
46
47
-// JSONOutput checks and prints JSON output.
+// JSONOutput marshals and prints the JSON output.
48
func JSONOutput(json *ResultData) {
49
- o, err := FormatJSON(json)
+ data, err := FormatJSON(json)
50
if err != nil {
51
gologger.Error().Msg(err.Error())
52
- } else {
53
- fmt.Println(string(o))
+ return
54
+
55
+ fmt.Println(string(data))
56
0 commit comments