Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk committed Sep 20, 2023
1 parent 8f8bb48 commit f70fb0a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit f70fb0a

Please sign in to comment.