Patchwork D10229: formatting: fix redundant parentheses

login
register
mail settings
Submitter phabricator
Date March 17, 2021, 11:07 a.m.
Message ID <differential-rev-PHID-DREV-x5qrm25s4pkrly5pz72t-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48544/
State Superseded
Headers show

Comments

phabricator - March 17, 2021, 11:07 a.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  These were introduced by 0d055849d5f9d682ef931d2566b760d5c6bf7e52 <https://phab.mercurial-scm.org/rHG0d055849d5f9d682ef931d2566b760d5c6bf7e52>.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D10229

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -1279,7 +1279,7 @@ 
                     or size == -2  # other parent
                     or fn in copymap
                 ):
-                    if (stat.S_ISLNK(st.st_mode) and size != st.st_size):
+                    if stat.S_ISLNK(st.st_mode) and size != st.st_size:
                         # issue6456: Size returned may be longer due to
                         # encryption on EXT-4 fscrypt, undecided.
                         ladd(fn)