templater: drop redundant return in _flatten
authorMatt Mackall <mpm@selenic.com>
Mon, 08 Oct 2012 16:21:24 -0500
changeset 17729 9a3cb3ce011e
parent 17728 004bd533880d
child 17730 6c6987761e42
templater: drop redundant return in _flatten
mercurial/templater.py
--- a/mercurial/templater.py	Tue Oct 09 01:41:55 2012 +0900
+++ b/mercurial/templater.py	Mon Oct 08 16:21:24 2012 -0500
@@ -341,8 +341,6 @@
         '''Perform expansion. t is name of map element to expand.
         mapping contains added elements for use during expansion. Is a
         generator.'''
-        return _flatten(func(self, mapping, data) for func, data in
-                         self._load(t))
         return _flatten(runtemplate(self, mapping, self._load(t)))
 
 engines = {'default': engine}