mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fixed error
This commit is contained in:
parent
e633d4d617
commit
51ce545833
@ -37,15 +37,15 @@ func (widget *Widget) Refresh() {
|
|||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.View.SetTitle(" Blockfolio ")
|
widget.View.SetTitle(" Blockfolio ")
|
||||||
|
|
||||||
positions, _ := Fetch(widget.device_token)
|
positions, err := Fetch(widget.device_token)
|
||||||
if _ != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
widget.View.SetText(fmt.Sprintf("%s", contentFrom(positions)))
|
widget.View.SetText(fmt.Sprintf("%s", contentFrom(positions)))
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------- Unexported Functions -------------------- */
|
/* -------------------- Unexported Functions -------------------- */
|
||||||
func contentFrom(positions AllPositionsResponse) string {
|
func contentFrom(positions *AllPositionsResponse) string {
|
||||||
res := ""
|
res := ""
|
||||||
for i := 0; i < len(positions.PositionList); i++ {
|
for i := 0; i < len(positions.PositionList); i++ {
|
||||||
res = res + "a"
|
res = res + "a"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user