summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
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"))