Skip to content

Commit

Permalink
Remove unused exception parameter from instagram/wellbeing/sake/loggi…
Browse files Browse the repository at this point in the history
…ng/SakeLoggingUtils.cpp

Summary:
`-Wunused-exception-parameter` has identified an unused exception parameter. This diff removes it.

This:
```
try {
    ...
} catch (exception& e) {
    // no use of e
}
```
should instead be written as
```
} catch (exception&) {
```

If the code compiles, this is safe to land.

Reviewed By: dmm-fb

Differential Revision: D58830900

fbshipit-source-id: cc1c55587e72af84941b5330d58f8cf92f937c6e
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jun 21, 2024
1 parent be70389 commit ec210a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_grpc/KatranGrpcService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Status KatranGrpcService::addRealForVip(
try {
Guard lock(giant_);
res = lb_.addRealForVip(nr, vk);
} catch (const std::exception& e) {
} catch (const std::exception&) {
res = false;
}
response->set_success(res);
Expand Down

0 comments on commit ec210a5

Please sign in to comment.