cleanup with staticcheck

This commit is contained in:
Aaron Bieber 2022-12-07 07:44:37 -07:00
parent 73c881b340
commit 70e8b0ada6
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View File

@ -53,7 +53,13 @@ func buildImage(xin *xinStatus) *myIcon {
i := &myIcon{} i := &myIcon{}
on, err := parseHexColor("#92CAFF") on, err := parseHexColor("#92CAFF")
if err != nil {
log.Println(err)
}
off, err := parseHexColor("#c1c1c1") off, err := parseHexColor("#c1c1c1")
if err != nil {
log.Println(err)
}
border, err := parseHexColor("#000000") border, err := parseHexColor("#000000")
if err != nil { if err != nil {

View File

@ -32,7 +32,6 @@ type commit struct {
} }
type xinStatus struct { type xinStatus struct {
debug bool
tabs *container.AppTabs tabs *container.AppTabs
cards []fyne.CanvasObject cards []fyne.CanvasObject
boundStrings []binding.ExternalString boundStrings []binding.ExternalString
@ -121,10 +120,6 @@ func (x *xinStatus) uptodateCount() float64 {
return float64(utd) return float64(utd)
} }
func (x *xinStatus) uptodate() bool {
return x.upgradeProgress.Value == x.aliveCount()
}
func (x *xinStatus) getCommit(c string) (*commit, error) { func (x *xinStatus) getCommit(c string) (*commit, error) {
commit := &commit{ commit := &commit{
hash: c, hash: c,