From ad2375c21be94b955a280ca041c1f8c67dcac2fe Mon Sep 17 00:00:00 2001 From: Noam Preil Date: Wed, 21 Oct 2020 23:06:25 +0000 Subject: [PATCH] Minor formatting improvement --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 0eab06f..12c5491 100644 --- a/main.go +++ b/main.go @@ -149,15 +149,15 @@ func registerExtension(router chi.Router, extension string, mime string) { end = time.Now().Add(-d) } - width := 12*vg.Inch - height := 6*vg.Inch + width := 12 * vg.Inch + height := 6 * vg.Inch if ws, ok := args["width"]; ok { w, _ := strconv.ParseFloat(ws[0], 32) - width = vg.Length(w)*vg.Inch + width = vg.Length(w) * vg.Inch } if hs, ok := args["height"]; ok { h, _ := strconv.ParseFloat(hs[0], 32) - height = vg.Length(h)*vg.Inch + height = vg.Length(h) * vg.Inch } // Undocumented option