From 85661714c6852514d8bb9dc3b93fab93dc93eefe Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 28 Jun 2024 00:48:43 -0700 Subject: [PATCH] Use `-and` instead of `&&` in PowerShell completion script --- src/completions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/completions.rs b/src/completions.rs index 439a172591..0beb4d1f3f 100644 --- a/src/completions.rs +++ b/src/completions.rs @@ -255,7 +255,7 @@ const POWERSHELL_COMPLETION_REPLACEMENTS: &[(&str, &str)] = &[( r#"function Get-JustFileRecipes([string[]]$CommandElements) { $justFileIndex = $commandElements.IndexOf("--justfile"); - if ($justFileIndex -ne -1 && $justFileIndex + 1 -le $commandElements.Length) { + if ($justFileIndex -ne -1 -and $justFileIndex + 1 -le $commandElements.Length) { $justFileLocation = $commandElements[$justFileIndex + 1] }