From 1a695a1ed6b3dfe19e0151a7750ba1e8e6b5f24b Mon Sep 17 00:00:00 2001 From: "microsoft-github-policy-service[bot]" <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 10:17:19 -0400 Subject: [PATCH] Reformat code (#14327) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update code to match the house style 😎 Co-authored-by: Bicep Automation --- .../SourceCode/SourceCodeDocumentLinkHelperTests.cs | 10 +++++----- src/Bicep.Core/Registry/OciArtifactRegistry.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Bicep.Core.UnitTests/SourceCode/SourceCodeDocumentLinkHelperTests.cs b/src/Bicep.Core.UnitTests/SourceCode/SourceCodeDocumentLinkHelperTests.cs index fc88961e82a..8f1c5d94d55 100644 --- a/src/Bicep.Core.UnitTests/SourceCode/SourceCodeDocumentLinkHelperTests.cs +++ b/src/Bicep.Core.UnitTests/SourceCode/SourceCodeDocumentLinkHelperTests.cs @@ -24,7 +24,7 @@ public void Single() var result = CompilationHelper.Compile( [ ("createVM.bicep", ""), - ("main.bicep", """ + ("main.bicep", """ // A comment module creatingVM 'createVM.bicep' = { // 'createVM.bicep' = [1:18]-[1:34] name: 'creatingVM' @@ -57,7 +57,7 @@ public void StartingWithDotDot() var result = CompilationHelper.Compile( [ ("createVM.bicep", ""), - ("main.bicep", """ + ("main.bicep", """ // A comment module creatingVM '../createVM.bicep' = { // '../createVM.bicep' = [1:18]-[1:37] } @@ -86,14 +86,14 @@ public void Multiple() module main '../../whatever.bicep' = { } """), - ("main.bicep", """ + ("main.bicep", """ module bing 'modules/ai/bing-resources.json' = { } module creatingVM 'createVM.bicep' = { } """), - ("../../whatever.bicep", ""), - ("modules/ai/bing-resources.json", """ + ("../../whatever.bicep", ""), + ("modules/ai/bing-resources.json", """ { "$schema": ""https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", diff --git a/src/Bicep.Core/Registry/OciArtifactRegistry.cs b/src/Bicep.Core/Registry/OciArtifactRegistry.cs index 9fc6c8d8857..a375e4e1bf7 100644 --- a/src/Bicep.Core/Registry/OciArtifactRegistry.cs +++ b/src/Bicep.Core/Registry/OciArtifactRegistry.cs @@ -408,7 +408,7 @@ protected override void WriteArtifactContentToCache(OciArtifactReference referen // if the artifact supports local deployment, fetch the provider binary if (config?.LocalDeployEnabled == true && - config?.SupportedArchitectures is {} binaryArchitectures) + config?.SupportedArchitectures is { } binaryArchitectures) { if (SupportedArchitectures.TryGetCurrent() is not { } architecture) {