67: Remove unnessary null check

This commit is contained in:
Tom Zhao 2025-02-13 09:26:21 +01:00
parent 1b692f87fb
commit aa801d0ae5

@ -219,18 +219,17 @@ public abstract class AbstractAdminIdeaPanel extends Panel {
); );
int targetCounter = (currentTarget == null) ? 0 : currentTarget.getTarget(); int targetCounter = (currentTarget == null) ? 0 : currentTarget.getTarget();
long matchedCounter = (countMatched == null) ? 0L : countMatched;
String msg = String msg =
"Supervisor changed: matched/target -> " + "Supervisor changed: matched/target -> " +
matchedCounter + countMatched +
" / " + " / " +
targetCounter + targetCounter +
" (" + " (" +
idea.getProjectType().getName() + idea.getProjectType().getName() +
")"; ")";
if (matchedCounter > targetCounter) { if (countMatched > targetCounter) {
warn(msg); warn(msg);
} else { } else {
info(msg); info(msg);