From d914bf7abeacb2f890c37d7cc77b77a9e8b993f9 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Tue, 31 Aug 2021 16:07:26 +0800 Subject: [PATCH] address the comment Signed-off-by: Ryan Leung --- ddl/partition.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ddl/partition.go b/ddl/partition.go index 591578f0b4ce0..cc5c5d9eaf3c0 100644 --- a/ddl/partition.go +++ b/ddl/partition.go @@ -933,8 +933,7 @@ func dropLabelRules(d *ddlCtx, schemaName, tableName string, partNames []string) } // delete batch rules patch := label.NewRulePatch(nil, deleteRules) - err := infosync.UpdateLabelRules(context.TODO(), patch) - return err + return infosync.UpdateLabelRules(context.TODO(), patch) } // onDropTablePartition deletes old partition meta.