Skip to content

Commit 9ed4d6f

Browse files
4JustMe4github-actions[bot]
authored andcommitted
Fix unused but set variables (#25876)
1 parent a2f7031 commit 9ed4d6f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/last_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7a9abfb04d596ae64b42a4c2af5d196b0c9f57fb
1+
b997686248fd02a04de35b15816f27cf320eb67e

src/client/coordination/coordination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ class TSessionContext : public TThrRefBase {
13411341
return;
13421342
}
13431343

1344-
if (auto* op = FindSentRequest<TPingOp>(SessionSelfPingReqId)) {
1344+
if (FindSentRequest<TPingOp>(SessionSelfPingReqId)) {
13451345
// We have an active request which has not been answered yet
13461346
// Cancel everything, it's a timeout :(
13471347
SessionSelfPingContext.reset();

src/client/persqueue_public/impl/write_session.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ std::optional<TContinuationToken> TSimpleBlockingWriteSession::WaitForToken(cons
117117
if (auto* readyEvent = std::get_if<TWriteSessionEvent::TReadyToAcceptEvent>(&event)) {
118118
Y_ABORT_UNLESS(!token.has_value());
119119
token = std::move(readyEvent->ContinuationToken);
120-
} else if (auto* ackEvent = std::get_if<TWriteSessionEvent::TAcksEvent>(&event)) {
120+
} else if (std::get_if<TWriteSessionEvent::TAcksEvent>(&event)) {
121121
// discard
122-
} else if (auto* closeSessionEvent = std::get_if<TSessionClosedEvent>(&event)) {
122+
} else if (std::get_if<TSessionClosedEvent>(&event)) {
123123
Closed.store(true);
124124
return std::nullopt;
125125
}

src/client/topic/impl/write_session.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ std::optional<TContinuationToken> TSimpleBlockingWriteSession::WaitForToken(cons
147147
if (auto* readyEvent = std::get_if<TWriteSessionEvent::TReadyToAcceptEvent>(&event)) {
148148
Y_ABORT_UNLESS(!token.has_value());
149149
token = std::move(readyEvent->ContinuationToken);
150-
} else if (auto* ackEvent = std::get_if<TWriteSessionEvent::TAcksEvent>(&event)) {
150+
} else if (std::get_if<TWriteSessionEvent::TAcksEvent>(&event)) {
151151
// discard
152-
} else if (auto* closeSessionEvent = std::get_if<TSessionClosedEvent>(&event)) {
152+
} else if (std::get_if<TSessionClosedEvent>(&event)) {
153153
Closed.store(true);
154154
return std::nullopt;
155155
}

src/client/types/credentials/oauth2_token_exchange/credentials.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ERetryErrorClass SyncRetryPolicyClass(const std::exception* ex, bool retryAllErr
9898
return ERetryErrorClass::ShortRetry;
9999
}
100100
}
101-
if (const TSystemError* err = dynamic_cast<const TSystemError*>(ex)) {
101+
if (dynamic_cast<const TSystemError*>(ex)) {
102102
return ERetryErrorClass::ShortRetry;
103103
}
104104

0 commit comments

Comments
 (0)