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 <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
sapics authored and MylesBorins committed Jul 27, 2020
1 parent 5c94358 commit 82fad58
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 82fad58

Please sign in to comment.