Skip to content

Commit 95d6e6b

Browse files
author
jm
committed
Lint: curly braces around early-return if
1 parent 1b7cc13 commit 95d6e6b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/app.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ export class AppComponent implements OnInit, AfterViewInit {
103103
*/
104104
private removeSsrOverlayWhenStable(): void {
105105
const w = this._window?.nativeWindow as any;
106-
if (!w || typeof w.__dspaceRemoveSsrOverlay !== 'function') return;
106+
if (!w || typeof w.__dspaceRemoveSsrOverlay !== 'function') {
107+
return;
108+
}
107109
// run outside Angular so we don't keep changeDetection ticking on the overlay timer
108110
this.ngZone.runOutsideAngular(() => {
109111
this.appRef.isStable.pipe(

0 commit comments

Comments
 (0)