Skip to content

Commit

Permalink
chore: using GBC_VERSION constant
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanCapistrano committed Jul 27, 2023
1 parent fdb0473 commit a288e54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a288e54

Please sign in to comment.