Commit 353f02e
committed
fix: Use nullish coalescing for Content-Type header
Replaced logical OR (||) with nullish coalescing operator (??)
for fetching the 'Content-Type' header in `DefaultResponseProcess`.
This change makes the assignment safer, as `??` only falls back
to the default value (empty string) if `response.headers.get('Content-Type')`
is strictly `null` or `undefined`, aligning with modern JavaScript best practices.1 parent dbc2713 commit 353f02e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments