Skip to content

Commit 28759f4

Browse files
authoredNov 30, 2023
refactor: better integrity check (#2462)
* refactor: better integrity check * better
1 parent ed15e98 commit 28759f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/fetch/request.js

+1-1
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)
Please sign in to comment.