Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Staneker <[email protected]>
  • Loading branch information
reuterbal and MichaelSt98 authored Dec 11, 2024
1 parent d84fbb0 commit 633d038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loki/batch/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def apply_file(self, sourcefile, plan_mode=False, **kwargs):
if plan_mode:
self.plan_file(sourcefile, item=item, role=role, targets=targets, items=items, **kwargs)
else:
if not plan_mode and sourcefile._incomplete:
if sourcefile._incomplete:
raise RuntimeError('Transformation.apply_file requires Sourcefile to be complete')

self.transform_file(sourcefile, item=item, role=role, targets=targets, items=items, **kwargs)
Expand Down

0 comments on commit 633d038

Please sign in to comment.