~sircmpwn/chartsrv-devel

Minor formatting improvement v1 PROPOSED

Noam Preil: 1
 Minor formatting improvement

 1 files changed, 4 insertions(+), 4 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/chartsrv-devel/patches/14404/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Minor formatting improvement Export this patch

---
 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
-- 
2.28.0
Thanks!

To git@git.sr.ht:~sircmpwn/chartsrv
   ad2375c..  master -> master