From 9a6ed7e700819f4a61293024b3ebb793afb39008 Mon Sep 17 00:00:00 2001 From: v-zhangjc9 Date: Wed, 29 May 2024 16:05:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(command):=20=E4=BF=AE=E5=A4=8DdoubleCheck?= =?UTF-8?q?=E7=9A=84=E5=A5=87=E6=80=AA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/command/commands/AbstractUtilShellComponent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service-command/src/main/java/com/lanyuanxiaoyao/service/command/commands/AbstractUtilShellComponent.java b/service-command/src/main/java/com/lanyuanxiaoyao/service/command/commands/AbstractUtilShellComponent.java index c26e291..f73d619 100644 --- a/service-command/src/main/java/com/lanyuanxiaoyao/service/command/commands/AbstractUtilShellComponent.java +++ b/service-command/src/main/java/com/lanyuanxiaoyao/service/command/commands/AbstractUtilShellComponent.java @@ -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) {