Skip to content

Commit 6054e21

Browse files
sapicsaddaleax
authored andcommitted
lib: simplify assignment
PR-URL: #33718 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 58cd76c commit 6054e21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/http2/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ const assertWithinRange = hideStackFrames(
542542

543543
function toHeaderObject(headers) {
544544
const obj = ObjectCreate(null);
545-
for (var n = 0; n < headers.length; n = n + 2) {
545+
for (var n = 0; n < headers.length; n += 2) {
546546
const name = headers[n];
547547
let value = headers[n + 1];
548548
if (name === HTTP2_HEADER_STATUS)

lib/internal/policy/sri.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const parse = (str) => {
5858
options: match[4] === undefined ? null : match[4],
5959
})
6060
});
61-
prevIndex = prevIndex + match[0].length;
61+
prevIndex += match[0].length;
6262
}
6363

6464
if (prevIndex !== str.length) {

0 commit comments

Comments
 (0)