Skip to content

Commit 874becd

Browse files
committed
simplify
1 parent 2ba5589 commit 874becd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cryptojwt/key_bundle.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,7 @@ def remove_outdated(self, after, when=0):
752752
before it should be removed.
753753
:param when: To make it easier to test
754754
"""
755-
if when:
756-
now = when
757-
else:
758-
now = time.time()
755+
now = when or time.time()
759756

760757
if not isinstance(after, float):
761758
after = float(after)

0 commit comments

Comments
 (0)