[PATCH] Remove duplicated empty patch test



The show_patch method is only called with a
non-empty patch, so remove the useless code

-- 
Vincent Legoll
Index: vcview.py
===================================================================
--- vcview.py	(revision 1178)
+++ vcview.py	(working copy)
@@ -443,8 +443,6 @@
         self._open_files(self._get_selected_files())
 
     def show_patch(self, prefix, patch):
-        if not patch: return
-
         tmpdir = tempfile.mkdtemp("-meld")
         self.tempdirs.append(tmpdir)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]