From c304765e5c8e1635d5b7e69db9c7431a83938c06 Mon Sep 17 00:00:00 2001 From: Michael Teuscher Date: Tue, 22 Jan 2019 23:28:01 +0100 Subject: [PATCH] Removed another one --- termdashdemo/termdashdemo.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/termdashdemo/termdashdemo.go b/termdashdemo/termdashdemo.go index 2cdc6c5..6e7a476 100644 --- a/termdashdemo/termdashdemo.go +++ b/termdashdemo/termdashdemo.go @@ -232,7 +232,7 @@ func newSparkLines(ctx context.Context) (*sparkline.SparkLine, *sparkline.SparkL ) go periodic(ctx, 500*time.Millisecond, func() error { v := int(rand.Int31n(max + 1)) - return err := spRed.Add([]int{v}) + return spRed.Add([]int{v}) }) return spGreen, spRed @@ -300,11 +300,11 @@ func newHeartbeat(ctx context.Context) *linechart.LineChart { go periodic(ctx, redrawInterval/3, func() error { step = (step + 1) % len(inputs) return lc.Series("heartbeat", rotate(inputs, step), - linechart.SeriesCellOpts(cell.FgColor(cell.ColorNumber(87))), - linechart.SeriesXLabels(map[int]string{ - 0: "zero", - }), - ) + linechart.SeriesCellOpts(cell.FgColor(cell.ColorNumber(87))), + linechart.SeriesXLabels(map[int]string{ + 0: "zero", + }), + ) }) return lc }