From 09e7a03b3741e60b7744ba28b80d2371d8d998b8 Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Wed, 29 Nov 2023 10:30:02 +0000 Subject: [PATCH] Remove warning --- src/FSharp.AWS.DynamoDB/Expression/UpdateExpr.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FSharp.AWS.DynamoDB/Expression/UpdateExpr.fs b/src/FSharp.AWS.DynamoDB/Expression/UpdateExpr.fs index dbd9a92..be8429c 100644 --- a/src/FSharp.AWS.DynamoDB/Expression/UpdateExpr.fs +++ b/src/FSharp.AWS.DynamoDB/Expression/UpdateExpr.fs @@ -338,7 +338,7 @@ let extractUpdateOps (exprs : IntermediateUpdateExprs) = exprs.Assignments |> Seq.map (fun (rp,e) -> extractUpdateOp rp e) |> Seq.append exprs.UpdateOps - |> Seq.filter (function Skip _ -> false | _ -> true) + |> Seq.filter (function Skip -> false | _ -> true) |> Seq.map (fun uop -> if uop.Attribute.IsHashKey && uop.Attribute.IsPrimaryKey then invalidArg "expr" "update expression cannot update hash key." if uop.Attribute.IsRangeKey && uop.Attribute.IsPrimaryKey then invalidArg "expr" "update expression cannot update range key." @@ -373,7 +373,7 @@ let applyParams (uops : UpdateOperations) (inputValues : obj[]) = let applyUpdateOp uop = match uop with - | Skip _ -> uop + | Skip -> uop | Remove(attr) -> Remove (applyAttr attr) | Set(attr, uv) -> UpdateOperation.ESet (applyAttr attr) (applyUpdateValue uv) | Add(attr, op) -> UpdateOperation.EAdd (applyAttr attr) (applyOperand op)