mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
20191215 code improvements (#790)
* Upgrade godo to latest * Fix a bunch of issues found by * Running staticcheck on a codebase for the first time is a sobering experience * go mod tidy * More static improvements Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -21,7 +21,6 @@ type Widget struct {
|
||||
view.TextWidget
|
||||
|
||||
language string
|
||||
result string
|
||||
settings *Settings
|
||||
}
|
||||
|
||||
@@ -132,7 +131,7 @@ func (widget *Widget) nbascore() (string, string, bool) {
|
||||
}
|
||||
}
|
||||
qColor := "[white]"
|
||||
if activate == true {
|
||||
if activate {
|
||||
qColor = "[sandybrown]"
|
||||
}
|
||||
allGame += fmt.Sprintf("%s%5s%v[white] %s %3s [white]vs %s%-3s %s\n", qColor, "Q", quarter, vTeam, vScore, hColor, hScore, hTeam) // Format the score and store in allgame
|
||||
|
||||
Reference in New Issue
Block a user