Add braces

This commit is contained in:
Dario Seidl 2018-04-01 21:46:07 +02:00
parent 290c4bf4b3
commit 3f7a756746

View File

@ -48,9 +48,9 @@ public class JwtTokenFilter extends OncePerRequestFilter {
}
private Optional<String> getTokenString(String header) {
if (header == null)
if (header == null) {
return Optional.empty();
else {
} else {
String[] split = header.split(" ");
if (split.length < 2) {
return Optional.empty();