Skip to content

Commit

Permalink
Remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiLandiak committed Feb 13, 2024
1 parent 8efc921 commit f3cb9b6
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@ private String getHttpPublishCommand(String protocol, String baseUrl, DeviceCred
? "" : ":" + propertiesPort;
// Edge only:
port = ":" + getPortFromBaseUrl(baseUrl);
Pattern pattern = Pattern.compile("https?://[^:/]+:(\\d+)");
Matcher matcher = pattern.matcher(baseUrl);
if (matcher.find()) {
port = ":" + matcher.group(1);
}
return DeviceConnectivityUtil.getHttpPublishCommand(protocol, hostName, port, deviceCredentials);
}

Expand Down

0 comments on commit f3cb9b6

Please sign in to comment.