mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
remotefilelog: remove unneeded len comparison
Reviewed By: HarveyHunt Differential Revision: D16782324 fbshipit-source-id: 6924763fa423d4fa516052e01e5e13b0262a8779
This commit is contained in:
parent
97a6bc8e6a
commit
3767b9c61a
@ -344,10 +344,7 @@ class remotefilelog(object):
|
||||
rawtext = store.get(self.filename, node)
|
||||
if raw:
|
||||
return rawtext
|
||||
if (
|
||||
len(rawtext) == len(constants.BLACKLISTED_CONTENT)
|
||||
and rawtext == constants.BLACKLISTED_CONTENT
|
||||
):
|
||||
if rawtext == constants.BLACKLISTED_CONTENT:
|
||||
return constants.BLACKLISTED_MESSAGE
|
||||
flags = store.getmeta(self.filename, node).get(constants.METAKEYFLAG, 0)
|
||||
if flags == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user