From 772b22ada53dca7391b781dd7b5d14d2130cf277 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 23 Feb 2026 18:37:15 +0100 Subject: fix(stats): crashing if no data to show --- exp/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exp/functions.go') 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) -- cgit v1.2.3