aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Condition.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/concepts/Condition.ml')
-rw-r--r--lib/concepts/Condition.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/concepts/Condition.ml b/lib/concepts/Condition.ml
index cc0f7a7..16f02d0 100644
--- a/lib/concepts/Condition.ml
+++ b/lib/concepts/Condition.ml
@@ -18,6 +18,8 @@ let condition name message ?parent props =
|> Option.value ~default:BatMap.empty
|> props }
+let complement props ({properties; _} as condition) = {condition with properties= props properties}
+
let to_string_hum {name; message; properties; backtrace} =
let properties' =
properties