Skip to content

Commit 6949dbd

Browse files
authored
Typo. Only throw assertions at Debug time. (#6262)
2 parents 4ea5d43 + f06041c commit 6949dbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocaml/sdk-gen/csharp/autogen/src/XenRef.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public partial class XenRef<T> where T : XenObject<T>
4343
/// <param name="opaqueRef">May not be null.</param>
4444
public XenRef(string opaqueRef)
4545
{
46-
System.Diagnostics.Trace.Assert(opaqueRef != null, "'opaqueRef' parameter must not be null");
46+
System.Diagnostics.Debug.Assert(opaqueRef != null, "'opaqueRef' parameter must not be null");
4747
this.opaqueRef = opaqueRef;
4848
}
4949

ocaml/sdk-gen/csharp/gen_csharp_binding.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ and json_serialization_attr fr =
11861186
sprintf "\n [JsonConverter(typeof(StringStringMapConverter))]"
11871187
| Map (Ref u, Set String) ->
11881188
sprintf
1189-
"\n [JsonConverer(typeof(XenRefStringSetMapConverter<%s>))]"
1189+
"\n [JsonConverter(typeof(XenRefStringSetMapConverter<%s>))]"
11901190
(exposed_class_name u)
11911191
| Map (Ref _, _) | Map (_, Ref _) ->
11921192
failwith (sprintf "Need converter for %s" fr.field_name)

0 commit comments

Comments
 (0)