Skip to content

Commit

Permalink
Remove unreachable default clauses from module_builder.dart.
Browse files Browse the repository at this point in the history
I'm currently working on a fix to the analyzer that will cause
unreachable default clauses to be properly flagged as a warning
(#54575). To avoid a bot
failure when the fix lands, this unreachable default clause needs to
be removed.

Bug: #54575
Change-Id: Iba0d32cf28f716f790c68a88b209420871845db8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380963
Commit-Queue: Paul Berry <[email protected]>
Auto-Submit: Paul Berry <[email protected]>
Reviewed-by: Mark Zhou <[email protected]>
  • Loading branch information
stereotype441 authored and Commit Queue committed Aug 19, 2024
1 parent 44dd260 commit 22656a4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/dev_compiler/lib/src/compiler/module_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ Program transformModuleFormat(ModuleFormat format, Program module) {
case ModuleFormat.amd:
return AmdModuleBuilder().build(module);
case ModuleFormat.es6:
default:
return module;
}
}
Expand Down

0 comments on commit 22656a4

Please sign in to comment.