Skip to content

Commit

Permalink
fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
macgregor committed Feb 20, 2024
1 parent c9e02ff commit 4a54942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/urls/well_known.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ func ResolveGatewayURL(optionalParsedCliFlagValue string, optionalParsedConfig *

url, err := url.ParseRequestURI(gatewayURL)
if err != nil {
return "", fmt.Errorf("%w\n\nURL Source: %s\nExpected an absolute URI or an absolute path (e.g. %s) or a case-sensitive alias, one of: [%s]", err, source, sdk.DefaultURL, strings.Join(ValidOCMUrlAliases(), ", "))
return "", fmt.Errorf(
"%w\n\nURL Source: %s\nExpected an absolute URI/path (e.g. %s) or a case-sensitive alias, one of: [%s]",
err, source, sdk.DefaultURL, strings.Join(ValidOCMUrlAliases(), ", "))
}

return url.String(), nil
Expand Down
1 change: 1 addition & 0 deletions pkg/urls/well_known_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var _ = Describe("Gateway URL Resolution", func() {
"unix+h2c://my.server.com/tmp/api.socket",
}
invalidUrlOverrides := []string{
//nolint:misspell // intentional misspellings
"productin", "PRod", //alias typo
"localhost", "192.168.1.1", "api.openshift.com", //ip address/hostname without protocol
}
Expand Down

0 comments on commit 4a54942

Please sign in to comment.