Skip to content

Commit

Permalink
(chocolatey#2776) Fix AssemblyFileExtractor spelling error
Browse files Browse the repository at this point in the history
Rename method parameter from throwEror -> throwError
  • Loading branch information
vexx32 committed Mar 15, 2023
1 parent 7bfe1ac commit e612330
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public static void extract_text_file_from_assembly(IFileSystem fileSystem, IAsse
/// <param name="overwriteExisting">
/// if set to <c>true</c> [overwrite existing].
/// </param>
/// <param name="throwEror">Throw an error if there are issues</param>
public static void extract_binary_file_from_assembly(IFileSystem fileSystem, IAssembly assembly, string manifestLocation, string filePath, bool overwriteExisting = false, bool throwEror = true)
/// <param name="throwError">Throw an error if there are issues</param>
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))
{
Expand All @@ -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);
}
}

Expand Down

0 comments on commit e612330

Please # to comment.