From 5ac1a2de49982b2fc29527ad1713765daee70f78 Mon Sep 17 00:00:00 2001 From: Nils <52573120+niStee@users.noreply.github.com> Date: Sat, 2 Nov 2024 15:57:51 +0100 Subject: [PATCH] refactor: simplify command variable declarations in Powershell module update --- src/steps/powershell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/steps/powershell.rs b/src/steps/powershell.rs index 5320a09e..4227bfd6 100644 --- a/src/steps/powershell.rs +++ b/src/steps/powershell.rs @@ -67,9 +67,9 @@ impl Powershell { print_separator(t!("Powershell Modules Update")); - let mut unload_cmd = vec!["Get-Module | Remove-Module -Force"]; + let unload_cmd = ["Get-Module | Remove-Module -Force"]; let mut update_cmd = vec!["Update-Module"]; - let mut reload_cmd = vec!["Get-Module -ListAvailable | Import-Module"]; + let reload_cmd = ["Get-Module -ListAvailable | Import-Module"]; if ctx.config().verbose() { update_cmd.push("-Verbose");