gobuffalo / plush

The powerful template system that Go needs
MIT License
895 stars 57 forks source link

bug: Division by zero causes Plush to panic. #182

Closed Mido-sys closed 3 months ago

Mido-sys commented 3 months ago

Description

Plush Panics and throws an error when dividing the numerator with zero

To Reproduce

10 / 0 results in panic: runtime error: integer divide by zerodividing

Additional Context

Details

``` Paste the output of `buffalo info` here! ```
Mido-sys commented 3 months ago

Hello @paganotoni, I sent a PR to fix the following issue.

paganotoni commented 3 months ago

Thank you @Mido-sys