Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
yongnian committed Mar 27, 2024
1 parent 906af0d commit db280c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public static ProxyUtil getInstance() {

public synchronized void registerProxy(String ip, int port, String routeInfo) {
InetSocketAddress address = new InetSocketAddress(ip, port);
if (get(address) != null) {
ProxyResourceManager oldProxyResourceManager = get(address);
ProxyResourceManager oldProxyResourceManager = get(address);
if (oldProxyResourceManager != null) {
removeManagerProxy(oldProxyResourceManager);
}
put(address, getProxyProtocol(ip, port, routeInfo));
Expand Down

0 comments on commit db280c0

Please sign in to comment.