Skip to content

Commit

Permalink
fix: don't use ui endpoint for version checking (#3992)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Aug 28, 2024
1 parent 0002614 commit 6ec7f6b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cli/config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ const defaultVersionExtension = "json"
func GetVersion(ctx context.Context, cfg Config) (string, bool) {
result := fmt.Sprintf(`CLI: %s`, Version)

if cfg.UIEndpoint != "" {
scheme, endpoint, path, _ := ParseServerURL(cfg.UIEndpoint)
cfg.Scheme = scheme
cfg.Endpoint = endpoint
cfg.ServerPath = path
}
client := GetAPIClient(cfg)

if cfg.IsEmpty() {
Expand Down

0 comments on commit 6ec7f6b

Please sign in to comment.