diff --git a/ruma-common/src/push/condition.rs b/ruma-common/src/push/condition.rs index 22ae60cf..e7cde91d 100644 --- a/ruma-common/src/push/condition.rs +++ b/ruma-common/src/push/condition.rs @@ -293,12 +293,12 @@ impl FlattenedJson { JsonValue::String(s) => { if self.map.insert(path.clone(), s).is_some() { warn!("Duplicate path in flattened JSON: {}", path); - }; + } } JsonValue::Number(_) | JsonValue::Bool(_) => { if self.map.insert(path.clone(), value.to_string()).is_some() { warn!("Duplicate path in flattened JSON: {}", path); - }; + } } JsonValue::Array(_) | JsonValue::Null => {} }