Skip to content

Commit 1373a3f

Browse files
l2dygongna-au
authored andcommitted
fix: simplify returning boolean expression
1 parent dc4839c commit 1373a3f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

proxy/plan/plan_unshard.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ func IsSelectLastInsertIDStmt(stmt ast.StmtNode) bool {
8282
// IsSetStmt check if the statement is set comment
8383
func IsSetStmt(stmt ast.StmtNode) bool {
8484
_, ok := stmt.(*ast.SetStmt)
85-
if !ok {
86-
return false
87-
}
88-
89-
return true
85+
return ok
9086
}
9187

9288
// CreateUnshardPlan constructor of UnshardPlan

0 commit comments

Comments
 (0)