Patchwork [12,of,17] obsolete: remove superfluous pass statements

login
register
mail settings
Submitter Augie Fackler
Date Sept. 30, 2017, 12:02 p.m.
Message ID <09e901272db94667bc14.1506772938@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/24244/
State Accepted
Headers show

Comments

Augie Fackler - Sept. 30, 2017, 12:02 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1506771895 14400
#      Sat Sep 30 07:44:55 2017 -0400
# Node ID 09e901272db94667bc14dc8455a2299d540bb021
# Parent  28011b88d7cf1a95de128c932c3dda33f6293c5e
obsolete: remove superfluous pass statements

Patch

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -542,7 +542,6 @@  class obsstore(object):
                     raise
                 # just build an empty _all list if no obsstore exists, which
                 # avoids further stat() syscalls
-                pass
         return bool(self._all)
 
     __bool__ = __nonzero__