From 889e676cb4a0f804bb1d20331ce6fa853f26a09f Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Wed, 15 Mar 2023 10:44:32 -0400 Subject: [PATCH] Do not indent uuid-annotator files (#54) * Uncompress RouteViewIPv4.corrupt * Marshal JSON without indent --- handler/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/handler.go b/handler/handler.go index 629fe1f..1b5f8e8 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -29,7 +29,7 @@ type job struct { func (j *job) WriteFile(dir string, data *annotator.Annotations) error { // Serialize to JSON - contents, err := json.MarshalIndent(data, "", " ") + contents, err := json.Marshal(data) rtx.Must(err, "Could not serialize the Annotations struct to JSON. This should never happen.") // Create the necessary subdirectories.