Skip to content

Commit

Permalink
style(gateway): Remove unused local
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi committed Apr 2, 2024
1 parent 822d536 commit c12b88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/Remora.Discord.Gateway/DiscordGatewayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ private async Task<Result> RunConnectionIterationAsync(CancellationToken stopReq

if (receiveHello.Entity is not IPayload<IHello> hello)
{
if (receiveHello.Entity is IPayload<IReconnect> reconnect)
if (receiveHello.Entity is IPayload<IReconnect>)
{
// Discord may spit out a reconnect if the node is we're connecting while the gateway node is
// shutting down, but before the node is labeled as unavailable.
Expand Down

0 comments on commit c12b88c

Please sign in to comment.