diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-02-23 18:37:15 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-02-23 18:37:15 +0100 |
| commit | 772b22ada53dca7391b781dd7b5d14d2130cf277 (patch) | |
| tree | c50879dd471824276f891fed312b0ed65607ea2c /exp | |
| parent | eb9cee84b11e86ae8fdd726f54c2db96bcd593d8 (diff) | |
fix(stats): crashing if no data to show
Diffstat (limited to 'exp')
| -rw-r--r-- | exp/functions.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exp/functions.go b/exp/functions.go index 8d5b3af..1cf29bd 100644 --- a/exp/functions.go +++ b/exp/functions.go @@ -40,7 +40,7 @@ type LevelScale struct{} func (LevelScale) Normalize(min, max, x float64) float64 { if min < 0 || max < 0 || x < 0 { - panic("Values must be positive or null for a level scale.") + panic("values must be positive or null for a level scale") } levelMin := LevelExact(min) return (LevelExact(x) - levelMin) / (LevelExact(max) - levelMin) |
