Skip to content

Commit

Permalink
Revert prior commit and fix properly
Browse files Browse the repository at this point in the history
  • Loading branch information
MattThompson committed Nov 18, 2024
1 parent d3f45a2 commit 403a77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tests/Helpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let createSimpleDeployment parameters =

let convertTo<'T> = Serialization.toJson >> Serialization.ofJson<'T>

let farmerToMs<'T when 'T: null and 'T: not struct> (serializationSettings: Newtonsoft.Json.JsonSerializerSettings) data =
let farmerToMs<'T when 'T: null> (serializationSettings: Newtonsoft.Json.JsonSerializerSettings) data =
data
|> Serialization.toJson
|> fun json -> SafeJsonConvert.DeserializeObject<'T>(json, serializationSettings)
Expand All @@ -29,7 +29,7 @@ let getResourceAtIndex serializationSettings index (builder: #IBuilder) =
builder.BuildResources Location.WestEurope
|> fun r -> r.[index].JsonModel |> farmerToMs serializationSettings

let findAzureResources<'T when 'T: null>
let findAzureResources<'T when 'T: null and 'T: not struct>
(serializationSettings: Newtonsoft.Json.JsonSerializerSettings)
(deployment: IDeploymentSource)
=
Expand Down

0 comments on commit 403a77f

Please sign in to comment.