From 6439bf054f04819f3f9db6a4ca6fc54562556c23 Mon Sep 17 00:00:00 2001 From: crazycs520 Date: Tue, 27 Feb 2024 09:10:48 +0800 Subject: [PATCH] fix lint Signed-off-by: crazycs520 --- internal/locate/region_request.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/locate/region_request.go b/internal/locate/region_request.go index 7a14ebe0d2..7dd5a24f89 100644 --- a/internal/locate/region_request.go +++ b/internal/locate/region_request.go @@ -1295,10 +1295,7 @@ func (s *replicaSelector) canFallback2Follower() bool { return false } _, ok := s.state.(*accessKnownLeader) - if ok { - return false - } - return true + return !ok } func (s *replicaSelector) onDataIsNotReady() {