Skip to content

Commit c32db92

Browse files
committed
polish
1 parent 0a8a395 commit c32db92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

splitio/models/token.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ def decode_token(raw_token):
6464
return False, None, None
6565
token = raw_token['token']
6666
push_enabled = raw_token['pushEnabled']
67-
if not push_enabled or len(token.strip()) == 0:
68-
return False, None, None
67+
token_parts = token.strip().split('.')
6968

70-
token_parts = token.split('.')
71-
if len(token_parts) < 2:
69+
if not push_enabled or len(token_parts) < 2:
7270
return False, None, None
7371

7472
to_decode = token_parts[1]

0 commit comments

Comments
 (0)