From 70e8b0ada69b96242e142387bf04cb99232187b1 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 7 Dec 2022 07:44:37 -0700 Subject: [PATCH] cleanup with staticcheck --- icons.go | 6 ++++++ main.go | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/icons.go b/icons.go index c2d2871..81a1d01 100644 --- a/icons.go +++ b/icons.go @@ -53,7 +53,13 @@ func buildImage(xin *xinStatus) *myIcon { i := &myIcon{} on, err := parseHexColor("#92CAFF") + if err != nil { + log.Println(err) + } off, err := parseHexColor("#c1c1c1") + if err != nil { + log.Println(err) + } border, err := parseHexColor("#000000") if err != nil { diff --git a/main.go b/main.go index 98c5bd7..e3e0866 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,6 @@ type commit struct { } type xinStatus struct { - debug bool tabs *container.AppTabs cards []fyne.CanvasObject boundStrings []binding.ExternalString @@ -121,10 +120,6 @@ func (x *xinStatus) uptodateCount() float64 { return float64(utd) } -func (x *xinStatus) uptodate() bool { - return x.upgradeProgress.Value == x.aliveCount() -} - func (x *xinStatus) getCommit(c string) (*commit, error) { commit := &commit{ hash: c,