From a288e542d3b880d84a91862c033a229ff7314063 Mon Sep 17 00:00:00 2001 From: AllanCapistrano Date: Thu, 27 Jul 2023 09:36:36 -0300 Subject: [PATCH] chore: using GBC_VERSION constant --- cmd/update.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index ec22b50..26a9da6 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -18,8 +18,7 @@ var updateCmd = &cobra.Command{ Short: "Update gbc to the latest version available.", Long: `Update gbc to the latest version available.`, Run: func(cmd *cobra.Command, args []string) { - // if !config.IsLatestVersion(GBC_VERSION) { - if !config.IsLatestVersion("v1.0.0") { // TODO: Use GBC_VERSION constant + if !config.IsLatestVersion(GBC_VERSION) { fmt.Printf( "It is not the latest version. Updating to v%s\n", GBC_VERSION,