From 0687f792a317061a6b688e546fd73dd6a6c6f141 Mon Sep 17 00:00:00 2001 From: Phil Asmar Date: Thu, 24 Oct 2024 19:36:14 -0400 Subject: [PATCH] address malhars comment --- .../Extensions/StringExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Extensions/StringExtensions.cs b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Extensions/StringExtensions.cs index 1d9958f58..9259769f3 100644 --- a/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Extensions/StringExtensions.cs +++ b/Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Extensions/StringExtensions.cs @@ -16,10 +16,10 @@ public static string ToCamelCase(this string str) public static string ApplyReplacements(this string str) { - Type generatorType = typeof(Generator); - Assembly generatorAssembly = generatorType.Assembly; - AssemblyName assemblyName = generatorAssembly.GetName(); - Version assemblyVersion = assemblyName.Version; + var generatorType = typeof(Generator); + var generatorAssembly = generatorType.Assembly; + var assemblyName = generatorAssembly.GetName(); + var assemblyVersion = assemblyName.Version; return str.Replace("{ANNOTATIONS_ASSEMBLY_VERSION}", assemblyVersion?.ToString()); } }