From bb4a16bb4d43ba1c8312b2735baf999771053dd4 Mon Sep 17 00:00:00 2001 From: Zero King Date: Sun, 24 Aug 2025 10:03:25 +0000 Subject: [PATCH] fix: simplify returning boolean expression --- proxy/plan/plan_unshard.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/proxy/plan/plan_unshard.go b/proxy/plan/plan_unshard.go index 453eccae..eca520cc 100644 --- a/proxy/plan/plan_unshard.go +++ b/proxy/plan/plan_unshard.go @@ -82,11 +82,7 @@ func IsSelectLastInsertIDStmt(stmt ast.StmtNode) bool { // IsSetStmt check if the statement is set comment func IsSetStmt(stmt ast.StmtNode) bool { _, ok := stmt.(*ast.SetStmt) - if !ok { - return false - } - - return true + return ok } // CreateUnshardPlan constructor of UnshardPlan