Adjust severity of irreversible operations (#43721)

This commit is contained in:
Kyle Knoepfel 2024-04-22 09:41:53 -05:00 committed by GitHub
parent 080fc875eb
commit e1f2612581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -644,8 +644,8 @@ def reversed(self) -> "EnvironmentModifications":
elif isinstance(envmod, AppendFlagsEnv): elif isinstance(envmod, AppendFlagsEnv):
rev.remove_flags(envmod.name, envmod.value) rev.remove_flags(envmod.name, envmod.value)
else: else:
tty.warn( tty.debug(
f"Skipping reversal of unreversable operation {type(envmod)} {envmod.name}" f"Skipping reversal of irreversible operation {type(envmod)} {envmod.name}"
) )
return rev return rev