2010 // nolint:staticcheck
2011 if request.GetRegionId() != 0 {
2012 // nolint:staticcheck
2013 regionsID = []uint64{request.GetRegionId()}2014 } else {
2015 regionsID = request.GetRegionsId()
2016 }
2066 }
2067 // TODO: Deprecate it use `request.GetRegionsID`.
2068 // nolint:staticcheck
2069 region := rc.GetRegion(request.GetRegionId())2070 if region == nil {
2071 if request.GetRegion() == nil {
2072 return &pdpb.ScatterRegionResponse{
2008 if cli != nil {
2009 var regionsID []uint64
2010 // nolint:staticcheck
2011 if request.GetRegionId() != 0 {2012 // nolint:staticcheck
2013 regionsID = []uint64{request.GetRegionId()}
2014 } else {
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.