Skip to content

Commit 5aecbda

Browse files
Remove unreachable null check from toQueryParams fallthrough case (#306)
* Initial plan * Fix toQueryParams: remove unreachable null check from _ case Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
1 parent 3c8a90e commit 5aecbda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SwaggerProvider.Runtime/RuntimeHelpers.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module RuntimeHelpers =
116116
| :? DateTime as x -> [ name, x.ToString("O") ]
117117
| :? DateTimeOffset as x -> [ name, x.ToString("O") ]
118118
| :? Option<Guid> as x -> x |> toStrOpt name
119-
| _ -> [ name, (if isNull obj then null else obj.ToString()) ]
119+
| _ -> [ name, obj.ToString() ]
120120

121121
let getPropertyNameAttribute name =
122122
{ new Reflection.CustomAttributeData() with

0 commit comments

Comments
 (0)