Commit ff6ba014 by Don Mitchell Committed by Calen Pennington

Remove noop if statement

parent 391ed8c9
...@@ -5,10 +5,7 @@ from xmodule.modulestore import Location ...@@ -5,10 +5,7 @@ from xmodule.modulestore import Location
def get_module_info(store, location, parent_location=None, rewrite_static_links=False): def get_module_info(store, location, parent_location=None, rewrite_static_links=False):
try: try:
if location.revision is None: module = store.get_item(location)
module = store.get_item(location)
else:
module = store.get_item(location)
except ItemNotFoundError: except ItemNotFoundError:
# create a new one # create a new one
template_location = Location(['i4x', 'edx', 'templates', location.category, 'Empty']) template_location = Location(['i4x', 'edx', 'templates', location.category, 'Empty'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment