mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
Small fix for 100% coverage
This commit is contained in:
parent
021a141521
commit
20bd33499f
@ -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 = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user