cleanup with staticcheck
This commit is contained in:
parent
73c881b340
commit
70e8b0ada6
6
icons.go
6
icons.go
@ -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 {
|
||||||
|
5
main.go
5
main.go
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user