~sircmpwn/chartsrv

ad2375c21be94b955a280ca041c1f8c67dcac2fe — Noam Preil 3 years ago 2b9570f
Minor formatting improvement
1 files changed, 4 insertions(+), 4 deletions(-)

M main.go
M main.go => main.go +4 -4
@@ 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