Skip to content

Commit 3016a49

Browse files
committed
refactor: remove unnecessary delete key
1 parent 355e0cb commit 3016a49

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/firebase_functions/options.py

-2
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ def _asdict_with_global_options(self) -> dict:
253253
for option in resettable_options:
254254
if option not in merged_options:
255255
merged_options[option] = RESET_VALUE
256-
if "preserve_external_changes" in merged_options:
257-
del merged_options["preserve_external_changes"]
258256
# _util.Sentinel values are converted to `None` in ManifestEndpoint generation
259257
# after other None values are removed - so as to keep them in the generated
260258
# YAML output as 'null' values.

tests/test_options.py

-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ def test_options_preserve_external_changes():
8787
min_instances=5,
8888
)
8989
options_asdict = options._GLOBAL_OPTIONS._asdict_with_global_options()
90-
assert ("preserve_external_changes"
91-
not in options_asdict), "option is still set"
92-
9390
assert (options_asdict["max_instances"] is
9491
options.RESET_VALUE), "option should be RESET_VALUE"
9592
assert options_asdict["min_instances"] == 5, "option should be set"

0 commit comments

Comments
 (0)