From e07da79d403d924a8a19ef748f6ce456eab3c8b3 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 28 Jun 2024 00:52:16 -0700 Subject: [PATCH] Use `-and` instead of `&&` in PowerShell completion script (#2204) --- src/completions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/completions.rs b/src/completions.rs index 439a172..0beb4d1 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] }