From 85cfaa7345724f7437e1482a40c2dfa5392cb625 Mon Sep 17 00:00:00 2001 From: JATMN Date: Tue, 27 Oct 2026 06:24:14 -0700 Subject: [PATCH] chore: remove useless expressions from plugin validation (#2436) --- src/commands/plugin/ValidatePlugin.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/commands/plugin/ValidatePlugin.tsx b/src/commands/plugin/ValidatePlugin.tsx index a07ccc057..793c13f4e 100644 --- a/src/commands/plugin/ValidatePlugin.tsx +++ b/src/commands/plugin/ValidatePlugin.tsx @@ -31,39 +31,29 @@ export function ValidatePlugin(t0) { const result = await validateManifest(path); let output = ""; output = output + `Validating ${result.fileType} manifest: ${result.filePath}\n\n`; - output; if (result.errors.length > 0) { output = output + `${figures.cross} Found ${result.errors.length} ${plural(result.errors.length, "error")}:\n\n`; - output; result.errors.forEach(error_0 => { output = output + ` ${figures.pointer} ${error_0.path}: ${error_0.message}\n`; - output; }); output = output + "\n"; - output; } if (result.warnings.length > 0) { output = output + `${figures.warning} Found ${result.warnings.length} ${plural(result.warnings.length, "warning")}:\n\n`; - output; result.warnings.forEach(warning => { output = output + ` ${figures.pointer} ${warning.path}: ${warning.message}\n`; - output; }); output = output + "\n"; - output; } if (result.success) { if (result.warnings.length > 0) { output = output + `${figures.tick} Validation passed with warnings\n`; - output; } else { output = output + `${figures.tick} Validation passed\n`; - output; } process.exitCode = 0; } else { output = output + `${figures.cross} Validation failed\n`; - output; process.exitCode = 1; } onComplete(output);