Skip to content

Commit

Permalink
fix: fix needRefreshToken logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Sep 25, 2024
1 parent a2f6162 commit 7efe264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ func (s *serviceWrapper) EnablePorter(ctx context.Context, req *pb.EnablePorterR
if resp, err := s.LibrarianPorterServiceServer.EnablePorter(ctx, req); isUnimplementedError(err) {
return &pb.EnablePorterResponse{
StatusMessage: "",
NeedRefreshToken: needRefreshToken || resp.GetNeedRefreshToken(),
NeedRefreshToken: needRefreshToken,
EnablesSummary: nil,
}, nil
} else {
resp.NeedRefreshToken = needRefreshToken
resp.NeedRefreshToken = needRefreshToken || resp.GetNeedRefreshToken()
return resp, err
}
}
Expand Down

0 comments on commit 7efe264

Please sign in to comment.