Skip to content

Commit

Permalink
optimize param check
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhom1314 committed Aug 1, 2023
1 parent 7adc555 commit e04430c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

import java.lang.reflect.Field;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -172,7 +173,7 @@ protected String populatePoolName(ExecutorWrapper executorWrapper) {
}

private String highlightNotifyContent(String content, List<String> diffs) {
if (StringUtils.isBlank(content)) {
if (StringUtils.isBlank(content) || Objects.isNull(getColors())) {
return content;
}

Expand All @@ -187,7 +188,7 @@ private String highlightNotifyContent(String content, List<String> diffs) {
}

private String highlightAlarmContent(String content, NotifyItemEnum notifyItemEnum) {
if (StringUtils.isBlank(content)) {
if (StringUtils.isBlank(content) || Objects.isNull(getColors())) {
return content;
}

Expand Down

0 comments on commit e04430c

Please sign in to comment.