mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
some more refactoring
This commit is contained in:
parent
8e4b8d345f
commit
b2dad63000
5 changed files with 9 additions and 12 deletions
|
|
@ -2581,7 +2581,7 @@ def arrayizeValue(value):
|
|||
itself
|
||||
"""
|
||||
|
||||
if not isinstance(value, (list, tuple, set)):
|
||||
if not isinstance(value, (list, tuple)):
|
||||
value = [ value ]
|
||||
|
||||
return value
|
||||
|
|
@ -2592,7 +2592,7 @@ def unArrayizeValue(value):
|
|||
itself
|
||||
"""
|
||||
|
||||
if isinstance(value, (list, tuple, set)):
|
||||
if isinstance(value, (list, tuple)):
|
||||
value = value[0] if len(value) > 0 else None
|
||||
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue