Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Feb 19, 2021
1 parent bb4b45f commit c68efac
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ private String setInternalUrl(String endpointUrl) {
}

private String setPublicUrl(String endpointUrl) {
if (serverInternalURL != null
&& serverURL != null
&& endpointUrl.startsWith(serverInternalURL)) {
if (serverURL != null && serverInternalURL != null) {
return endpointUrl.replace(serverInternalURL, serverURL);
}
return endpointUrl;
Expand Down

0 comments on commit c68efac

Please sign in to comment.