From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/cryptomarket/chart.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/cryptomarket/chart.go') diff --git a/internal/cryptomarket/chart.go b/internal/cryptomarket/chart.go index c1fef29..5ea477c 100644 --- a/internal/cryptomarket/chart.go +++ b/internal/cryptomarket/chart.go @@ -13,7 +13,10 @@ func Chart(candles []Candle, width int, unicode bool, paint func(string, bool) s width = max(12, min(80, width)) label := 12 count := width - label - 2 - if count < 2 || len(candles) < 2 { + if count < 2 { + return []string{"Chart too narrow; widen wrap_width."} + } + if len(candles) < 2 { return []string{"Not enough completed daily candles."} } if len(candles) > count { -- cgit v1.2.3