Skip to content

Commit

Permalink
chore: improving the default case
Browse files Browse the repository at this point in the history
code review suggestion was a good one: improve the default case, because
the fallback should be None.
  • Loading branch information
deborahgu committed Oct 1, 2024
1 parent ec10aa0 commit 06ae7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/learner_home/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def get_cert_info(self, enrollment):
def get_availableDate(self, enrollment):
"""Available date changes based off of Certificate display behavior"""
course_overview = enrollment.course_overview
available_date = course_overview.certificate_available_date
available_date = None

if (
course_overview.certificates_display_behavior
Expand Down

0 comments on commit 06ae7c0

Please sign in to comment.