Skip to content

Commit 68b294e

Browse files
Fix ternary operator
1 parent 2a31e17 commit 68b294e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ng-advanced/rxjs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ <h2>RxJS - Level 8: Error Handling</h2>
451451
// j k l x4|
452452
catchError(() => of('z'))
453453
retry( 2 )
454-
retry({ delay: (error) => error === x1 : of(error) : throwError(() => error) })
454+
retry({ delay: (error) => error === x1 ? of(error) : throwError(() => error) })
455455
</code></pre>
456456
<ul>
457457
<li>Note: xN is an error</li>
@@ -472,7 +472,7 @@ <h2>RxJS - Level 8: Error Handling (Solution)</h2>
472472
// a b c z
473473
retry( 2 )
474474
// a b c d e f g h i x3
475-
retry({ delay: (error) => error === x1 : of(error) : throwError(() => error) })
475+
retry({ delay: (error) => error === x1 ? of(error) : throwError(() => error) })
476476
// a b c d e f x2
477477
</code></pre>
478478
<aside class="notes">

0 commit comments

Comments
 (0)