mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 19:27:39 +02:00
black & ruff
This commit is contained in:
@@ -82,7 +82,6 @@ class ArrowRenderer(CLIRenderer):
|
||||
|
||||
return pa.schema(fields)
|
||||
|
||||
|
||||
def _flatten_tree_structure(self, nested: list[dict]) -> list[dict]:
|
||||
"""
|
||||
Flattens a list of nested dicts using the `__children` key.
|
||||
@@ -116,13 +115,9 @@ class ArrowRenderer(CLIRenderer):
|
||||
|
||||
return rows
|
||||
|
||||
|
||||
|
||||
|
||||
def output_result(self, schema: "pa.Schema", outfd: TextIO, result):
|
||||
"""Outputs the JSON data to a file in a particular format"""
|
||||
|
||||
|
||||
if self._is_tree_result:
|
||||
result = self._flatten_tree_structure(result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user