From 4f4c690d38ffd58854e022067f920971a8b4e3a7 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 21 Dec 2024 18:51:59 +0900 Subject: fortify: move json indent call Signed-off-by: Ophestra --- main.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index d7786fd6..5821b3ca 100644 --- a/main.go +++ b/main.go @@ -106,12 +106,7 @@ func main() { fmt.Println(license) fmsg.Exit(0) case "template": // print full template configuration - if s, err := json.MarshalIndent(fst.Template(), "", " "); err != nil { - fmsg.Fatalf("cannot generate template: %v", err) - panic("unreachable") - } else { - fmt.Println(string(s)) - } + printJSON(fst.Template()) fmsg.Exit(0) case "help": // print help message flag.CommandLine.Usage() -- cgit v1.3.1