projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't declare caught exceptions when not actually used
[folly.git]
/
folly
/
experimental
/
logging
/
LogLevel.cpp
diff --git
a/folly/experimental/logging/LogLevel.cpp
b/folly/experimental/logging/LogLevel.cpp
index a60e024eb85bec2a1698baaf1f635de796becce4..03e13d33e0f5566ea690229784625023039800e8 100644
(file)
--- a/
folly/experimental/logging/LogLevel.cpp
+++ b/
folly/experimental/logging/LogLevel.cpp
@@
-76,7
+76,7
@@
LogLevel stringToLogLevel(StringPiece name) {
try {
auto level = folly::to<uint32_t>(lowerName);
return static_cast<LogLevel>(level);
- } catch (const std::exception&
ex
) {
+ } catch (const std::exception&) {
throw std::range_error("invalid logger name " + name.str());
}
}