From f67c8a865dbe8e7ff07c833be589c9ce31fcced8 Mon Sep 17 00:00:00 2001 From: nolouch Date: Mon, 22 Apr 2024 16:36:27 +0800 Subject: [PATCH] address Signed-off-by: nolouch --- pkg/core/region.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/core/region.go b/pkg/core/region.go index 387557af580..713e82cc36d 100644 --- a/pkg/core/region.go +++ b/pkg/core/region.go @@ -1048,7 +1048,7 @@ func (r *RegionsInfo) CheckAndPutRootTree(ctx *MetaProcessContext, region *Regio // CheckAndPutSubTree checks if the region is valid to put to the sub tree, if valid then return error. // Usually used with CheckAndPutRootTree together. -func (r *RegionsInfo) CheckAndPutSubTree(region *RegionInfo) error { +func (r *RegionsInfo) CheckAndPutSubTree(region *RegionInfo) { // new region get from root tree again var newRegion *RegionInfo newRegion = r.GetRegion(region.GetID()) @@ -1056,7 +1056,6 @@ func (r *RegionsInfo) CheckAndPutSubTree(region *RegionInfo) error { newRegion = region } r.UpdateSubTreeOrderInsensitive(newRegion) - return nil } // UpdateSubTreeOrderInsensitive updates the subtree.