Skip to content

Commit f81140a

Browse files
committed
fix(angular): rm unneeded check
1 parent 60e8b65 commit f81140a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

verify/angular/src/monaco-angular-wrapper/monaco-angular-wrapper.component.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ export class MonacoAngularWrapperComponent implements OnDestroy {
3838
effect(async () => {
3939
try {
4040
if (this.wrapperConfig() !== undefined) {
41-
if (this.wrapperConfig() !== undefined) {
42-
await this.wrapper.initAndStart(
43-
this.wrapperConfig() as WrapperConfig
44-
);
45-
this.handleOnTextChanged();
46-
}
41+
await this.wrapper.initAndStart(
42+
this.wrapperConfig() as WrapperConfig
43+
);
44+
this.handleOnTextChanged();
4745
}
4846
} catch (e) {
4947
console.error(e);

0 commit comments

Comments
 (0)