Skip to content

Commit

Permalink
Better code reading
Browse files Browse the repository at this point in the history
  • Loading branch information
k1nd0ne committed Dec 3, 2023
1 parent ed2db93 commit acb088d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions volatility3/framework/plugins/windows/mftscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,14 @@ def _generator(self):
content = attr.get_resident_filecontent()
if content:
# Preparing for Disassembly
disasm = interfaces.renderers.BaseAbsentValue
architecture = layer.metadata.get(
"architecture", None
)

disasm = (
interfaces.renderers.Disassembly(
if architecture:
disasm = interfaces.renderers.Disassembly(
content, 0, architecture.lower()
)
if architecture
else interfaces.renderers.BaseAbsentValue
)
else:
content = renderers.NotAvailableValue
disasm = interfaces.renderers.BaseAbsentValue
Expand Down

0 comments on commit acb088d

Please sign in to comment.