Skip to content

Commit

Permalink
Addressed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-bdufour committed Dec 9, 2024
1 parent 5e6929e commit dceb994
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/snowflake/cli/_plugins/nativeapp/codegen/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,5 @@ def _is_enabled(self, processor: ProcessorMapping) -> bool:

# if the processor class defines a static method named "is_enabled", then
# call it. Otherwise, it's considered enabled by default.
is_enabled_fn = getattr(processor_cls, "is_enabled", None)
if is_enabled_fn is None:
# No custom static method provided, enabled by default
return True

is_enabled_fn = getattr(processor_cls, "is_enabled", lambda: True)
return is_enabled_fn()

0 comments on commit dceb994

Please sign in to comment.