From 51ce54583306464862f4481032e27d0e695d6818 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 10 Jun 2018 01:51:15 +0300 Subject: [PATCH] Fixed error --- blockfolio/widget.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blockfolio/widget.go b/blockfolio/widget.go index 04ed4cd8..3254c3b3 100644 --- a/blockfolio/widget.go +++ b/blockfolio/widget.go @@ -37,15 +37,15 @@ func (widget *Widget) Refresh() { widget.UpdateRefreshedAt() widget.View.SetTitle(" Blockfolio ") - positions, _ := Fetch(widget.device_token) - if _ != nil { + positions, err := Fetch(widget.device_token) + if err != nil { return } widget.View.SetText(fmt.Sprintf("%s", contentFrom(positions))) } /* -------------------- Unexported Functions -------------------- */ -func contentFrom(positions AllPositionsResponse) string { +func contentFrom(positions *AllPositionsResponse) string { res := "" for i := 0; i < len(positions.PositionList); i++ { res = res + "a"