Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 0c480a1

Browse files
author
John Andersen
committed
df: memory: Fix indentation on input gathering
Signed-off-by: John Andersen <[email protected]>
1 parent 7679d10 commit 0c480a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dffml/df/memory.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ async def gather_inputs(
438438
return
439439
# Gather all inputs with matching definitions and contexts
440440
for input_name, input_sources in input_flow.inputs.items():
441+
# Create parameters for all the inputs
442+
gather[input_name] = []
441443
for input_source in input_sources:
442444
# Create a list of places this input originates from
443445
origins = []
@@ -446,8 +448,6 @@ async def gather_inputs(
446448
origins.append(origin)
447449
else:
448450
origins.append(input_source)
449-
# Create parameters for all the inputs
450-
gather[input_name] = []
451451
for origin in origins:
452452
# Don't try to grab inputs from an origin that
453453
# doesn't have any to give us
@@ -484,9 +484,9 @@ async def gather_inputs(
484484
],
485485
)
486486
)
487-
# Return if there is no data for an input
488-
if not gather[input_name]:
489-
return
487+
# Return if there is no data for an input
488+
if not gather[input_name]:
489+
return
490490
# Generate all possible permutations of applicable inputs
491491
for permutation in product(*list(gather.values())):
492492
# Create the parameter set

0 commit comments

Comments
 (0)