From 3f7a756746c01400b6aa1e67f9b87c3768c924d8 Mon Sep 17 00:00:00 2001 From: Dario Seidl Date: Sun, 1 Apr 2018 21:46:07 +0200 Subject: [PATCH] Add braces --- src/main/java/io/spring/api/security/JwtTokenFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/spring/api/security/JwtTokenFilter.java b/src/main/java/io/spring/api/security/JwtTokenFilter.java index 2873650..2d1dba3 100644 --- a/src/main/java/io/spring/api/security/JwtTokenFilter.java +++ b/src/main/java/io/spring/api/security/JwtTokenFilter.java @@ -48,9 +48,9 @@ public class JwtTokenFilter extends OncePerRequestFilter { } private Optional 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();