From e61233045608ec0495854925d9a975bed1d93f8d Mon Sep 17 00:00:00 2001 From: Rain Sallow Date: Wed, 15 Mar 2023 17:05:25 -0400 Subject: [PATCH] (#2776) Fix AssemblyFileExtractor spelling error Rename method parameter from throwEror -> throwError --- .../infrastructure/extractors/AssemblyFileExtractor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chocolatey/infrastructure/extractors/AssemblyFileExtractor.cs b/src/chocolatey/infrastructure/extractors/AssemblyFileExtractor.cs index a6d3111856..e893825aa8 100644 --- a/src/chocolatey/infrastructure/extractors/AssemblyFileExtractor.cs +++ b/src/chocolatey/infrastructure/extractors/AssemblyFileExtractor.cs @@ -66,8 +66,8 @@ public static void extract_text_file_from_assembly(IFileSystem fileSystem, IAsse /// /// if set to true [overwrite existing]. /// - /// Throw an error if there are issues - public static void extract_binary_file_from_assembly(IFileSystem fileSystem, IAssembly assembly, string manifestLocation, string filePath, bool overwriteExisting = false, bool throwEror = true) + /// Throw an error if there are issues + public static void extract_binary_file_from_assembly(IFileSystem fileSystem, IAssembly assembly, string manifestLocation, string filePath, bool overwriteExisting = false, bool throwError = true) { if (overwriteExisting || !fileSystem.file_exists(filePath)) { @@ -78,10 +78,10 @@ public static void extract_binary_file_from_assembly(IFileSystem fileSystem, IAs fileSystem.write_file(filePath, () => assembly.get_manifest_stream(manifestLocation)); }, errorMessage:"Unable to extract binary", - throwError: throwEror, + throwError: throwError, logWarningInsteadOfError: false, - logDebugInsteadOfError: !throwEror, - isSilent: !throwEror); + logDebugInsteadOfError: !throwError, + isSilent: !throwError); } }