Mercurial > hg-stable
changeset 23145:97b6e762f218
largefiles: remove confusing 'or None' from predicate
The match function that is overriden returns a boolean value, so
adding 'or None' is both unnecessary and confusing.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 27 Oct 2014 21:10:24 -0700 |
parents | 55325a327754 |
children | 5311de37b86f |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Thu Oct 30 22:32:39 2014 -0700 +++ b/hgext/largefiles/overrides.py Mon Oct 27 21:10:24 2014 -0700 @@ -35,7 +35,7 @@ m._fmap = set(m._files) m._always = False origmatchfn = m.matchfn - m.matchfn = lambda f: notlfile(f) and origmatchfn(f) or None + m.matchfn = lambda f: notlfile(f) and origmatchfn(f) return m oldmatch = installmatchfn(overridematch)