diff --git a/logfire/variables/config.py b/logfire/variables/config.py index f10a29156..19513cce4 100644 --- a/logfire/variables/config.py +++ b/logfire/variables/config.py @@ -259,7 +259,4 @@ def validate_python(data: Any) -> VariablesConfig: def _matches_all_conditions(conditions: list[Condition], attributes: Mapping[str, Any]) -> bool: """Check if all conditions match the provided attributes.""" - for condition in conditions: - if not condition.matches(attributes): - return False - return True + return all(condition.matches(attributes) for condition in conditions)