summaryrefslogtreecommitdiff
path: root/lib/query/update.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/query/update.ml')
-rw-r--r--lib/query/update.ml10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/query/update.ml b/lib/query/update.ml
index 9bd1f2b..515bf2e 100644
--- a/lib/query/update.ml
+++ b/lib/query/update.ml
@@ -181,13 +181,9 @@ let q :
match d with
| Model.Data.None -> acc
| Model.Data.V (t, seq) -> (
- match
- ( Model.Types.eq content_type t,
- Model.Types.eq_ocaml content_type t )
- with
- | Some Type.Equal, Some Type.Equal ->
- (fields, (name, t, seq) :: references)
- | _ -> raise Encoder.TypeMismatch))
+ match Model.Types.eq content_type t with
+ | Some Type.Equal -> (fields, (name, t, seq) :: references)
+ | None -> raise Encoder.TypeMismatch))
| _ -> (
match d with
| Model.Data.None -> acc