fix(command): 修复doubleCheck的奇怪错误

This commit is contained in:
v-zhangjc9
2024-05-29 16:05:11 +08:00
parent 29240a2990
commit 9a6ed7e700

View File

@@ -1,11 +1,12 @@
package com.lanyuanxiaoyao.service.command.commands;
import cn.hutool.core.util.BooleanUtil;
import org.springframework.shell.component.ConfirmationInput;
import org.springframework.shell.standard.AbstractShellComponent;
public abstract class AbstractUtilShellComponent extends AbstractShellComponent {
protected Boolean doubleCheck(String message, Boolean ignore) {
return ignore || doubleCheck(message);
return BooleanUtil.isTrue(ignore) || doubleCheck(message);
}
protected Boolean doubleCheck(String message) {