From 7882554330848b0bf2eb4dc4b3f625fec58f55d4 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Wed, 15 May 2024 17:04:03 +0300 Subject: [PATCH] Format and comment updates --- src/Kiota.Builder/Refiners/TypeScriptRefiner.cs | 2 +- .../Refiners/TypeScriptLanguageRefinerTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs b/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs index 42e47e5aa8..5e6c9673ca 100644 --- a/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs +++ b/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs @@ -960,7 +960,7 @@ private static CodeInterface CreateModelInterface(CodeClass modelClass, Func(temporaryInterfaceName, false) != null) - { + {// We already know an Interface doesn't exist with the name. Make sure we don't collide with an existing class name in the namespace. temporaryInterfaceName = $"{temporaryInterfaceName}{i++}"; } diff --git a/tests/Kiota.Builder.Tests/Refiners/TypeScriptLanguageRefinerTests.cs b/tests/Kiota.Builder.Tests/Refiners/TypeScriptLanguageRefinerTests.cs index 17e660a952..0c7178dd7d 100644 --- a/tests/Kiota.Builder.Tests/Refiners/TypeScriptLanguageRefinerTests.cs +++ b/tests/Kiota.Builder.Tests/Refiners/TypeScriptLanguageRefinerTests.cs @@ -638,7 +638,7 @@ public async Task AddsModelInterfaceForAModelClassWithoutCollision() var modelsNS = root.FindNamespaceByName(generationConfiguration.ModelsNamespaceName); var codeFile = modelsNS.FindChildByName(IndexFileName, false); Assert.NotNull(codeFile); - Assert.Equal(2,codeFile.Interfaces.Count()); + Assert.Equal(2, codeFile.Interfaces.Count()); Assert.Contains(codeFile.Interfaces, static x => "hostModel".Equals(x.Name, StringComparison.OrdinalIgnoreCase)); Assert.Contains(codeFile.Interfaces, static x => "hostModelInterface".Equals(x.Name, StringComparison.OrdinalIgnoreCase)); }