Skip to content

Commit

Permalink
chore: remove redundant is not None
Browse files Browse the repository at this point in the history
Co-authored-by: Ronald Moesbergen <[email protected]>
  • Loading branch information
sverben and rmoesbergen authored Sep 10, 2024
1 parent ec2f5bb commit dbe6cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aanmelden/src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class Register(AuthenticatedMixin, SlotContextMixin, View):
def get(self, request, *args, **kwargs):
future_date = kwargs.get("date")
try:
if future_date is not None:
if future_date:
register_future(parse_date(future_date), self.slot, request.user)
else:
register(self.slot, request.user, request.user.is_superuser)
Expand Down

0 comments on commit dbe6cea

Please sign in to comment.