refactor: remove unused case in switch statement (#28253)

PR Close #28253
This commit is contained in:
Daniel Ruf 2019-01-19 16:10:44 +01:00 committed by Alex Rickabaugh
parent f4ac96d0ff
commit 607fd8e970

View File

@ -43,8 +43,6 @@ export class ServerRendererFactory2 implements RendererFactory2 {
(<EmulatedEncapsulationServerRenderer2>renderer).applyToHost(element); (<EmulatedEncapsulationServerRenderer2>renderer).applyToHost(element);
return renderer; return renderer;
} }
case ViewEncapsulation.Native:
throw new Error('Native encapsulation is not supported on the server!');
default: { default: {
if (!this.rendererByCompId.has(type.id)) { if (!this.rendererByCompId.has(type.id)) {
const styles = flattenStyles(type.id, type.styles, []); const styles = flattenStyles(type.id, type.styles, []);