Commit 47cc2cd2 authored by Aditya Kumar's avatar Aditya Kumar Committed by Facebook Github Bot

Remove redundant unhandled catch block

Reviewed By: gunnarku

Differential Revision: D17631777

fbshipit-source-id: 0d7aef0804f6ab85c5e1bdc4460d6357af0dc0e1
parent e305694f
...@@ -2903,15 +2903,11 @@ std::string AsyncSocket::withAddr(folly::StringPiece s) { ...@@ -2903,15 +2903,11 @@ std::string AsyncSocket::withAddr(folly::StringPiece s) {
folly::SocketAddress peer, local; folly::SocketAddress peer, local;
try { try {
getLocalAddress(&local); getLocalAddress(&local);
} catch (const std::exception&) {
// ignore
} catch (...) { } catch (...) {
// ignore // ignore
} }
try { try {
getPeerAddress(&peer); getPeerAddress(&peer);
} catch (const std::exception&) {
// ignore
} catch (...) { } catch (...) {
// ignore // ignore
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment