Add braces
This commit is contained in:
parent
290c4bf4b3
commit
3f7a756746
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user