mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 18:58:07 +01:00
Minor: Return exception instead of throwing it in .orElseThrow()
Gets rid of an IntelliJ warning about it. No difference in behavior, there is a test that already covers this path.
This commit is contained in:
committed by
Jon Chambers
parent
ed72d7f9ec
commit
2d314e5309
@@ -87,7 +87,7 @@ public class CaptchaChecker {
|
||||
final Action parsedAction = Action.parse(action)
|
||||
.orElseThrow(() -> {
|
||||
Metrics.counter(INVALID_ACTION_COUNTER_NAME, "action", action).increment();
|
||||
throw new BadRequestException("invalid captcha action");
|
||||
return new BadRequestException("invalid captcha action");
|
||||
});
|
||||
|
||||
if (!parsedAction.equals(expectedAction)) {
|
||||
|
||||
Reference in New Issue
Block a user