Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Feb 28, 2024
1 parent 80fa574 commit ca75b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func NewClient(config *Config) (*ApiClient, error) {
ht.TLSClientConfig = &tlsconfig
}

if !strings.HasSuffix(baseUrl.Path, "/") && baseUrl.Host != "unix" {
if !strings.HasSuffix(baseUrl.Path, "/") && baseUrl.Path != "" {
return nil, fmt.Errorf("BaseURL must have a trailing slash, but %q does not (host: %s, path: %s)", baseUrl, baseUrl.Host, baseUrl.Path)
}

Check warning on line 95 in pkg/apiclient/client.go

View check run for this annotation

Codecov / codecov/patch

pkg/apiclient/client.go#L94-L95

Added lines #L94 - L95 were not covered by tests

Expand Down

0 comments on commit ca75b8a

Please sign in to comment.