Skip to content

Commit

Permalink
lib: simplify assignment
Browse files Browse the repository at this point in the history
PR-URL: #33718
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
sapics authored and addaleax committed Sep 22, 2020
1 parent 58cd76c commit 6054e21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/http2/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ const assertWithinRange = hideStackFrames(

function toHeaderObject(headers) {
const obj = ObjectCreate(null);
for (var n = 0; n < headers.length; n = n + 2) {
for (var n = 0; n < headers.length; n += 2) {
const name = headers[n];
let value = headers[n + 1];
if (name === HTTP2_HEADER_STATUS)
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/policy/sri.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const parse = (str) => {
options: match[4] === undefined ? null : match[4],
})
});
prevIndex = prevIndex + match[0].length;
prevIndex += match[0].length;
}

if (prevIndex !== str.length) {
Expand Down

0 comments on commit 6054e21

Please sign in to comment.