fix(command): 修复doubleCheck的奇怪错误
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
package com.lanyuanxiaoyao.service.command.commands;
|
package com.lanyuanxiaoyao.service.command.commands;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.BooleanUtil;
|
||||||
import org.springframework.shell.component.ConfirmationInput;
|
import org.springframework.shell.component.ConfirmationInput;
|
||||||
import org.springframework.shell.standard.AbstractShellComponent;
|
import org.springframework.shell.standard.AbstractShellComponent;
|
||||||
|
|
||||||
public abstract class AbstractUtilShellComponent extends AbstractShellComponent {
|
public abstract class AbstractUtilShellComponent extends AbstractShellComponent {
|
||||||
protected Boolean doubleCheck(String message, Boolean ignore) {
|
protected Boolean doubleCheck(String message, Boolean ignore) {
|
||||||
return ignore || doubleCheck(message);
|
return BooleanUtil.isTrue(ignore) || doubleCheck(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Boolean doubleCheck(String message) {
|
protected Boolean doubleCheck(String message) {
|
||||||
|
|||||||
Reference in New Issue
Block a user