commands: replace 'x = f(); return x' with 'return f()'
authorMartin Geisler <mg@lazybytes.net>
Wed, 18 May 2011 19:25:34 +0200
changeset 14362 8c740a850ad7
parent 14361 ea7081645987
child 14363 82f3b0f3f0a5
commands: replace 'x = f(); return x' with 'return f()'
mercurial/commands.py
--- a/mercurial/commands.py	Wed May 18 19:22:55 2011 +0200
+++ b/mercurial/commands.py	Wed May 18 19:25:34 2011 +0200
@@ -3204,8 +3204,7 @@
 
     repo._subtoppath = ui.expandpath(source)
     try:
-        ret = hg.incoming(ui, repo, source, opts)
-        return ret
+        return hg.incoming(ui, repo, source, opts)
     finally:
         del repo._subtoppath
 
@@ -3544,8 +3543,7 @@
 
     repo._subtoppath = ui.expandpath(dest or 'default-push', dest or 'default')
     try:
-        ret = hg.outgoing(ui, repo, dest, opts)
-        return ret
+        return hg.outgoing(ui, repo, dest, opts)
     finally:
         del repo._subtoppath