summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-31 13:34:13 -0600
committerJeff Carr <[email protected]>2024-01-31 13:34:13 -0600
commit4641eceda817e822b1e4e096086a2227a04bb3fd (patch)
tree5960151642ca54cd30fe574e28b463f44ecaf033 /update.go
parent1a9b13dda5e13d0786718768443bab4a6916aab9 (diff)
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'update.go')
-rw-r--r--update.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/update.go b/update.go
index bd25ff1..69360ab 100644
--- a/update.go
+++ b/update.go
@@ -9,6 +9,7 @@ import (
)
func (ls *LinuxStatus) Update() {
+ 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"))