changeset 32923:e413609659cf

strip: remove unncessary "del" and inline variable
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 19 Jun 2017 13:13:28 -0700
parents eb84b4ad41e5
children f044295cdb7a
files mercurial/repair.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/repair.py	Mon Jun 19 11:24:21 2017 -0700
+++ b/mercurial/repair.py	Mon Jun 19 13:13:28 2017 -0700
@@ -168,9 +168,7 @@
 
     mfst = repo.manifestlog._revlog
 
-    curtr = repo.currenttransaction()
-    if curtr is not None:
-        del curtr  # avoid carrying reference to transaction for nothing
+    if repo.currenttransaction() is not None:
         raise error.ProgrammingError('cannot strip from inside a transaction')
 
     try: