Skip to content

Commit

Permalink
Simplify match
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 committed Sep 25, 2023
1 parent 963d6fd commit 7be2b83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/EFCore.FSharp/Translations/IsNullTranslation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ let isNullMethodTranslator (sqlExp: ISqlExpressionFactory) =
else
let expression = arguments |> Seq.tryHead
match expression with
| Some expression ->
match method.Name with
| "IsNull" -> sqlExp.IsNull(expression) :> _
| _ -> null
| None -> null }
| Some expression
when method.Name = "IsNull" ->
sqlExp.IsNull(expression) :> _
| _ -> null }

0 comments on commit 7be2b83

Please sign in to comment.