Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Remove unnecessary break in switchDefault example (#4650)
Browse files Browse the repository at this point in the history
Last switch case does not need a break statement as it is already the switch will already end after it. This way this example will also ensure following the rule switchFinalBreakRule.
  • Loading branch information
rarenal authored and Josh Goldberg committed Apr 13, 2019
1 parent 703acaf commit 6de190d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rules/code-examples/switchDefault.examples.ts
Expand Up @@ -35,7 +35,6 @@ export const codeExamples = [
break;
default:
console.log('default');
break;
}
`,
fail: Lint.Utils.dedent`
Expand All @@ -46,7 +45,6 @@ export const codeExamples = [
break;
case 2:
doSomething2();
break;
}
`,
},
Expand Down

0 comments on commit 6de190d

Please sign in to comment.