summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/availability_finder.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/server2/availability_finder.py')
-rw-r--r--chrome/common/extensions/docs/server2/availability_finder.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/common/extensions/docs/server2/availability_finder.py b/chrome/common/extensions/docs/server2/availability_finder.py
index f9cf1b3..69028b0c 100644
--- a/chrome/common/extensions/docs/server2/availability_finder.py
+++ b/chrome/common/extensions/docs/server2/availability_finder.py
@@ -34,12 +34,11 @@ def _GetChannelFromFeatures(api_name, file_system, path):
if feature is None:
return None
if isinstance(feature, collections.Mapping):
- # The channel information dict is nested within a list for whitelisting
- # purposes.
+ # The channel information exists as a solitary dict.
return feature.get('channel')
- # Features can contain a list of entries. Take the newest branch.
- return BranchUtility.NewestChannel(entry.get('channel')
- for entry in feature)
+ # The channel information dict is nested within a list for whitelisting
+ # purposes. Take the newest channel out of all of the entries.
+ return BranchUtility.NewestChannel(entry.get('channel') for entry in feature)
def _GetChannelFromApiFeatures(api_name, file_system):
try: