1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

Process data only if data is given

This commit is contained in:
Jake Ob
2023-04-16 20:19:15 +03:00
parent f8dceb5046
commit 08496533e2

View File

@ -342,15 +342,15 @@ def parse(data: str, raw: bool = False, quiet: bool = False) -> List[JSONDictTyp
List of Dictionaries. Raw or processed structured data.
"""
result: List[TypeDict] = []
if jc.utils.has_data(data):
jc.utils.compatibility(__name__, info.compatible, quiet)
jc.utils.input_type_check(data)
linedata = data.splitlines()
linedata.reverse()
result: List[TypeDict] = []
if jc.utils.has_data(data):
while linedata:
element = None
if data.startswith("Controller"):