Skip to content

Commit

Permalink
Minor formatting improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Preil authored and ddevault committed Oct 24, 2020
1 parent 2b9570f commit ad2375c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad2375c

Please sign in to comment.