From 5fc4705d1426ae044c8a78fe3ff8a7b7b1961fc7 Mon Sep 17 00:00:00 2001 From: Andrii Chebukin Date: Mon, 28 Oct 2024 21:37:53 +0400 Subject: [PATCH] Fixed code review remarks by @ninjarobot --- src/Farmer/Builders/Builders.Storage.fs | 4 ++-- src/Farmer/Types.fs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Farmer/Builders/Builders.Storage.fs b/src/Farmer/Builders/Builders.Storage.fs index 93eaa4ef2..84c104498 100644 --- a/src/Farmer/Builders/Builders.Storage.fs +++ b/src/Farmer/Builders/Builders.Storage.fs @@ -286,9 +286,9 @@ type StorageAccountBuilder() = Containers = let containers = names - |> List.ofSeq - |> List.map (fun name -> + |> Seq.map (fun name -> ((StorageResourceName.Create name).OkValue, access, immutabilityPolicies)) + |> Seq.toList state.Containers @ containers } diff --git a/src/Farmer/Types.fs b/src/Farmer/Types.fs index 24ae40ad0..fed98067d 100644 --- a/src/Farmer/Types.fs +++ b/src/Farmer/Types.fs @@ -442,19 +442,19 @@ type FeatureFlagExtensions = [] static member AsBoolean(featureFlag: FeatureFlag option) = - featureFlag |> Option.map (fun f -> f.AsBoolean) |> Option.toNullable + featureFlag |> Option.map _.AsBoolean |> Option.toNullable [] static member AsInvertedBoolean(featureFlag: FeatureFlag option) = - featureFlag |> Option.map (fun f -> f.AsInvertedBoolean) |> Option.toNullable + featureFlag |> Option.map _.AsInvertedBoolean |> Option.toNullable [] static member ArmValue(featureFlag: FeatureFlag option) = - featureFlag |> Option.map (fun f -> f.ArmValue) |> Option.toObj + featureFlag |> Option.map _.ArmValue |> Option.toObj [] static member ArmInvertedValue(featureFlag: FeatureFlag option) = - featureFlag |> Option.map (fun f -> f.ArmInvertedValue) |> Option.toObj + featureFlag |> Option.map _.ArmInvertedValue |> Option.toObj module FeatureFlag = let ofBool enabled = if enabled then Enabled else Disabled