summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-25 18:39:27 -0600
committerJeff Carr <[email protected]>2024-02-25 18:39:27 -0600
commit40e811b3b39ffe8d6c2394dc024bb0770933683a (patch)
treeb6ce067128ed00ab8d5d6e8f2ddb1861684e6684 /update.go
parent4641eceda817e822b1e4e096086a2227a04bb3fd (diff)
Init() is a better function name herev0.22.0v0.21.3
Diffstat (limited to 'update.go')
-rw-r--r--update.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/update.go b/update.go
index 69360ab..648d284 100644
--- a/update.go
+++ b/update.go
@@ -9,7 +9,9 @@ import (
)
func (ls *LinuxStatus) Update() {
- if ls == nil { return }
+ if ls == nil {
+ return
+ }
if !ls.Ready() {
log.Log(WARN, "can't update yet. ready is false")
log.Error(errors.New("Update() is not ready yet"))