remotefilelog: remove unneeded len comparison

Reviewed By: HarveyHunt

Differential Revision: D16782324

fbshipit-source-id: 6924763fa423d4fa516052e01e5e13b0262a8779
This commit is contained in:
Kostia Balytskyi 2019-08-13 03:56:10 -07:00 committed by Facebook Github Bot
parent 97a6bc8e6a
commit 3767b9c61a

View File

@ -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: