Skip to content

Commit

Permalink
further fixes to the pull (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlapao authored Nov 23, 2023
1 parent a18ed99 commit 4bd6f34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/catalog/models/catalog_manifest_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ func (m *CatalogManifestProvider) IsRemote() bool {
}

func (m *CatalogManifestProvider) GetUrl() string {
host := m.Host
if m.Host == "" {
return ""
return host
}
if m.Port == "" {
return m.Host
if m.Port != "" {
host = m.Host + ":" + m.Port
}

host := m.Host + ":" + m.Port
if strings.HasPrefix(host, "http://") || strings.HasPrefix(host, "https://") {
return host
} else {
Expand Down

0 comments on commit 4bd6f34

Please sign in to comment.