From 6940cb334aedeed86d193b4ee04011a7a6c58d59 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Tue, 19 Feb 2013 13:33:55 +0200 Subject: [PATCH] small refactor --- common/lib/xmodule/xmodule/conditional_module.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/conditional_module.py b/common/lib/xmodule/xmodule/conditional_module.py index aef63920fd..f56311880b 100644 --- a/common/lib/xmodule/xmodule/conditional_module.py +++ b/common/lib/xmodule/xmodule/conditional_module.py @@ -143,11 +143,10 @@ class ConditionalDescriptor(SequenceDescriptor): if sources: locations = [location.strip() for location in sources.split(';')] for location in locations: - # Check valid location url. - if Location.is_valid(location): + if Location.is_valid(location): # Check valid location url. try: - descriptor = system.load_item(location) if return_descriptor: + descriptor = system.load_item(location) result.append(descriptor) else: result.append(location)