diff --git a/src/steps/generic.rs b/src/steps/generic.rs index b6ba3a4c..01f53b0f 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -354,9 +354,7 @@ pub fn run_vscode_extensions_update(ctx: &ExecutionContext) -> Result<()> { return Err(SkipStep(String::from("Should not run in WSL")).into()); } - let vscode = require("code").or_else( - |_| require("codium") - )?; + let vscode = require("code").or_else(|_| require("codium"))?; // Vscode has update command only since 1.86 version ("january 2024" update), disable the update for prior versions // Use command `code --version` which returns 3 lines: version, git commit, instruction set. We parse only the first one