Skip to content

Commit 90a9ff2

Browse files
committed
Removed "random_hex_str" if statement.
1 parent fb047e8 commit 90a9ff2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

two_factor/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ def key_validator(*args, **kwargs):
5656

5757

5858
def random_hex_str():
59-
h = random_hex()
60-
if isinstance(h, bytes):
61-
return h.decode('utf-8')
62-
return h
59+
return random_hex().decode('utf-8')
6360

6461

6562
class PhoneDevice(Device):

0 commit comments

Comments
 (0)