From cdbcd400a21f1ccf3ee2ff663b93a68446649cd6 Mon Sep 17 00:00:00 2001 From: Michael Teuscher Date: Tue, 22 Jan 2019 23:27:21 +0100 Subject: [PATCH] Removed assigner in return --- termdashdemo/termdashdemo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termdashdemo/termdashdemo.go b/termdashdemo/termdashdemo.go index b2573e5..2cdc6c5 100644 --- a/termdashdemo/termdashdemo.go +++ b/termdashdemo/termdashdemo.go @@ -223,7 +223,7 @@ func newSparkLines(ctx context.Context) (*sparkline.SparkLine, *sparkline.SparkL const max = 100 go periodic(ctx, 250*time.Millisecond, func() error { v := int(rand.Int31n(max + 1)) - return err := spGreen.Add([]int{v}) + return spGreen.Add([]int{v}) }) spRed := sparkline.New(