Skip to content

Commit 28759f4

Browse files
authored
refactor: better integrity check (#2462)
* refactor: better integrity check * better
1 parent ed15e98 commit 28759f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fetch/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class Request {
301301
}
302302

303303
// 23. If init["integrity"] exists, then set request’s integrity metadata to it.
304-
if (init.integrity !== undefined && init.integrity != null) {
304+
if (init.integrity != null) {
305305
request.integrity = String(init.integrity)
306306
}
307307

0 commit comments

Comments
 (0)