diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 00:57:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 00:57:43 -0600 |
| commit | ff3a51f3544a255b2b2bcd489e7ef71a12e7196a (patch) | |
| tree | 16a0b17d227c71dcb6f96f2ed226a6cbcb712710 /update.go | |
| parent | 47a665be8bf2724730698fb6775b2f8d904f8629 (diff) | |
gofmt autofix pathsv0.12.9
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'update.go')
| -rw-r--r-- | update.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,21 +1,21 @@ package repostatus import ( + "errors" "fmt" "time" - "errors" "go.wit.com/log" ) func (rs *RepoStatus) Update() { - if ! rs.Ready() { + if !rs.Ready() { log.Log(WARN, "can't update yet. ready is false") log.Error(errors.New("Update() is not ready yet")) return } log.Log(WARN, "Update() START") - duration := timeFunction(func () { + duration := timeFunction(func() { // do things that are safe even if the git tree is dirty log.Warn("path.SetText()") rs.path.SetText(rs.repopath) @@ -67,9 +67,9 @@ func (rs *RepoStatus) setSpeed(duration time.Duration) { } rs.speedActual.SetText(s) - if (duration > 500 * time.Millisecond ) { + if duration > 500*time.Millisecond { rs.speed.SetText("SLOW") - } else if (duration > 100 * time.Millisecond ) { + } else if duration > 100*time.Millisecond { rs.speed.SetText("OK") } else { rs.speed.SetText("FAST") |
