diff --git a/versionCheck.go b/versionCheck.go index 039ce15..8c807a3 100644 --- a/versionCheck.go +++ b/versionCheck.go @@ -49,11 +49,7 @@ func MaybeCheckVersion() { var result []tagResults err = json.Unmarshal(contents, &result) - if err != nil { - return - } - - if len(result) == 0 { + if err != nil || len(result) == 0 { return }