mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Enable the no-typeof-undefined
ESLint plugin rule
Please see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
This commit is contained in:
parent
4793a0717f
commit
47dbfc4ade
7 changed files with 8 additions and 9 deletions
|
@ -46,7 +46,7 @@ function createHeaders(httpHeaders) {
|
|||
const headers = new Headers();
|
||||
for (const property in httpHeaders) {
|
||||
const value = httpHeaders[property];
|
||||
if (typeof value === "undefined") {
|
||||
if (value === undefined) {
|
||||
continue;
|
||||
}
|
||||
headers.append(property, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue