Skip to content

Commit db8f4d1

Browse files
committed
Remove redundant catch.
EndOfStreamException is an IOException.
1 parent ac4c185 commit db8f4d1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/MySqlConnector/Serialization/MySqlSession.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ public async Task<bool> TryResetConnectionAsync(ConnectionSettings cs, IOBehavio
291291

292292
return true;
293293
}
294-
catch (EndOfStreamException)
295-
{
296-
}
297294
catch (IOException)
298295
{
299296
}
@@ -412,9 +409,6 @@ public async Task<bool> TryPingAsync(IOBehavior ioBehavior, CancellationToken ca
412409
OkPayload.Create(payload);
413410
return true;
414411
}
415-
catch (EndOfStreamException)
416-
{
417-
}
418412
catch (IOException)
419413
{
420414
}

0 commit comments

Comments
 (0)