diff --git a/dangerfile.js b/dangerfile.js index 29eaf8da32943..a304862da4e0f 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -3,8 +3,6 @@ const fse = require('fs-extra'); const path = require('path'); const prettier = require('prettier'); -const dangerCommand = process.env.DANGER_COMMAND; - async function reportBundleSize() { const snapshotPath = path.join(__dirname, './performance-snapshot.json'); const prettierConfigPath = path.join(__dirname, './prettier.config.js'); @@ -112,14 +110,6 @@ function addL10nHelpMessage() { async function run() { addL10nHelpMessage(); addDeployPreviewUrls(); - - switch (dangerCommand) { - case 'reportPerformance': - await reportBundleSize(); - break; - default: - throw new TypeError(`Unrecognized danger command '${dangerCommand}'`); - } } run().catch((error) => {