Add eqeqeq rule but require == for null
This commit is contained in:
parent
64a4d2e717
commit
0086216c9d
30 changed files with 64 additions and 63 deletions
|
@ -76,7 +76,7 @@ describe('link preview fetching', () => {
|
|||
const headersObj = new Headers();
|
||||
Object.entries({
|
||||
'Content-Type': 'text/html; charset=utf-8',
|
||||
'Content-Length': bodyLength === null ? null : String(bodyLength),
|
||||
'Content-Length': bodyLength == null ? null : String(bodyLength),
|
||||
...headers,
|
||||
}).forEach(([headerName, headerValue]) => {
|
||||
if (headerValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue