Skip to content

Commit

Permalink
refactor: changing condition checking
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Feb 15, 2024
1 parent 9a1729d commit 6518a91
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ def get_course_tagged_object_and_children(
object_tags=object_tag_cache.get(course_id, {}),
children=None,
)
if course.has_children:
children = course.children
else:
children = []

return tagged_course, children
return tagged_course, course.children if course.has_children else []


def get_library_tagged_object_and_children(
Expand Down

0 comments on commit 6518a91

Please sign in to comment.