Skip to content

Commit b2ac905

Browse files
authored
[Improvement-18051][alert] Remove unused dead code in WeChatSender mkString (#18100)
1 parent d30bc4f commit b2ac905

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

  • dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-wechat/src/main/java/org/apache/dolphinscheduler/plugin/alert/wechat

dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-wechat/src/main/java/org/apache/dolphinscheduler/plugin/alert/wechat/WeChatSender.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -156,24 +156,6 @@ private static String get(String url) throws IOException {
156156
}
157157
}
158158

159-
private static String mkString(Iterable<String> list) {
160-
if (null == list || StringUtils.isEmpty("|")) {
161-
return null;
162-
}
163-
164-
StringBuilder sb = new StringBuilder();
165-
boolean first = true;
166-
for (String item : list) {
167-
if (first) {
168-
first = false;
169-
} else {
170-
sb.append("|");
171-
}
172-
sb.append(item);
173-
}
174-
return sb.toString();
175-
}
176-
177159
private static AlertResult checkWeChatSendMsgResult(String result) {
178160
AlertResult alertResult = new AlertResult();
179161
alertResult.setSuccess(false);

0 commit comments

Comments
 (0)