徐勤民 4 månader sedan
förälder
incheckning
6f6a1478cb
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      src/main/java/cn/org/bjca/trust/java/imserver/RabbitMqApiUtil.java

+ 1 - 2
src/main/java/cn/org/bjca/trust/java/imserver/RabbitMqApiUtil.java

@@ -27,8 +27,7 @@ public class RabbitMqApiUtil {
     /*** 获取RabbitMq nodes* @return*/
     public static String getRabbitMqNodes(String rabbitMqUrl, String userName, String password) {
         String url = String.format("%s/api/nodes", rabbitMqUrl);
-        String result = new CurlUtil.Builder(url, userName, password).addHeader("Content-Type", "application/json; charset=utf-8").get().build();
-        return result;
+        return new CurlUtil.Builder(url, userName, password).addHeader("Content-Type", "application/json; charset=utf-8").get().build();
     }
 
     /*** 获取RabbitMq exchanges* @return*/