From 6de190d1062f5578e7fdd8ae38361e181d60339a Mon Sep 17 00:00:00 2001 From: rarenal Date: Sat, 13 Apr 2019 02:32:10 +0200 Subject: [PATCH] Remove unnecessary break in switchDefault example (#4650) 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. --- src/rules/code-examples/switchDefault.examples.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rules/code-examples/switchDefault.examples.ts b/src/rules/code-examples/switchDefault.examples.ts index 12ca03c6847..24be7bde8bb 100644 --- a/src/rules/code-examples/switchDefault.examples.ts +++ b/src/rules/code-examples/switchDefault.examples.ts @@ -35,7 +35,6 @@ export const codeExamples = [ break; default: console.log('default'); - break; } `, fail: Lint.Utils.dedent` @@ -46,7 +45,6 @@ export const codeExamples = [ break; case 2: doSomething2(); - break; } `, },