diff --git a/util/check-pr-template.js b/util/check-pr-template.js index c05db0f978..1b20233213 100644 --- a/util/check-pr-template.js +++ b/util/check-pr-template.js @@ -47,21 +47,21 @@ if (uncheckedRequirements.length > 0) { ); } -const websitePreview = getSection( - "", - "", -); - -if (!websitePreview) { +if ( + !getSection( + "", + "", + ) +) { errors.push("The **Website Preview** section has not been filled out."); } -const websitePurpose = getSection( - "", - "", -); - -if (!websitePurpose) { +if ( + !getSection( + "", + "", + ) +) { errors.push("The **Website Purpose** section has not been filled out."); } @@ -69,7 +69,6 @@ if (errors.length > 0) { console.error("PR template validation failed."); console.error(""); console.error(errors.join("\n")); - process.exit(1); }