Skip to content

Commit

Permalink
Code cleanup, remove unneeded IF statement logic
Browse files Browse the repository at this point in the history
  • Loading branch information
conancain committed May 13, 2022
1 parent 3d50627 commit 2e212d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/yelp_beans/send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def create_google_calendar_invitation_link(user_list, title, office, location, m
'location': office + " " + location,
'add': ','.join([user.email for user in user_list])
}
if meeting_datetime.tzinfo and meeting_datetime.tzinfo.zone and "ctz" not in url_params:
if meeting_datetime.tzinfo and meeting_datetime.tzinfo.zone:
# If the meeting time have a timezone specified
# and Calendar URL link doesn't contain timezone
# Add the "ctz" parameter to Google's Calendar template link
Expand Down

0 comments on commit 2e212d6

Please sign in to comment.