Small fix for 100% coverage

This commit is contained in:
Henrique 2019-11-15 14:09:05 -05:00
parent 021a141521
commit 20bd33499f

View File

@ -173,16 +173,9 @@ class CommandManager(mitmproxy.types._CommandBase):
rex = rex.copy().leaveWhitespace()
remainder = cmdstr
for t, start, end in rex.scanString(cmdstr):
remainder = cmdstr[end:]
parts.append(t[0])
if remainder != '':
parts.append(remainder)
if not parts:
parts = []