Commit
+4 -4 +/-1 browse
1 | diff --git a/main.go b/main.go |
2 | index 0eab06f..12c5491 100644 |
3 | --- a/main.go |
4 | +++ b/main.go |
5 | @@ -149,15 +149,15 @@ func registerExtension(router chi.Router, extension string, mime string) { |
6 | end = time.Now().Add(-d) |
7 | } |
8 | |
9 | - width := 12*vg.Inch |
10 | - height := 6*vg.Inch |
11 | + width := 12 * vg.Inch |
12 | + height := 6 * vg.Inch |
13 | if ws, ok := args["width"]; ok { |
14 | w, _ := strconv.ParseFloat(ws[0], 32) |
15 | - width = vg.Length(w)*vg.Inch |
16 | + width = vg.Length(w) * vg.Inch |
17 | } |
18 | if hs, ok := args["height"]; ok { |
19 | h, _ := strconv.ParseFloat(hs[0], 32) |
20 | - height = vg.Length(h)*vg.Inch |
21 | + height = vg.Length(h) * vg.Inch |
22 | } |
23 | |
24 | // Undocumented option |