From 29a2ffef5d1749bddc110f1145519b8e5232cd8c Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 13 Oct 2016 09:27:44 -0700 Subject: [PATCH] Fix build issue. --- cmd/main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 057bc486c..2a20eb2fc 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -167,13 +167,10 @@ func Main() { // Do not print update messages, if quiet flag is set. if !globalQuiet { if strings.HasPrefix(ReleaseTag, "RELEASE.") && c.Args().Get(0) != "update" { - updateMsg, _, err := getReleaseUpdate(minioUpdateStableURL) - if err != nil { - // Ignore any errors during getReleaseUpdate(), possibly - // because of network errors. - return nil + updateMsg := getReleaseUpdate(minioUpdateStableURL, true) + if updateMsg.Update { + console.Println(updateMsg) } - console.Println(updateMsg) } }