Skip to content

Commit

Permalink
Stop using continue
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Sep 18, 2023
1 parent bf9a9c1 commit b647ec2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
"error",
{"allowBlockStart": true}
],
"no-console": "off",
"object-curly-spacing": "error",
"one-var": [
"error",
Expand All @@ -27,8 +28,6 @@ module.exports = {
"never"
],

"no-console": "warn",
"no-continue": "warn",
"no-duplicate-imports": "warn",
"no-inline-comments": "warn",
"no-magic-numbers": "warn",
Expand Down
21 changes: 10 additions & 11 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,16 @@ const _linkBytecode = (artifact: Artifact, libraries: Map<string, string>) => {
fixups
] of Object.entries(fileReferences)) {
const addr = libraries.get(libName);
if (addr === undefined) {
continue;
}
for (const fixup of fixups) {
bytecode =
bytecode.substr(
0,
2 + fixup.start * 2
) +
addr.substr(2) +
bytecode.substr(2 + (fixup.start + fixup.length) * 2);
if (addr !== undefined) {
for (const fixup of fixups) {
bytecode =
bytecode.substr(
0,
2 + fixup.start * 2
) +
addr.substr(2) +
bytecode.substr(2 + (fixup.start + fixup.length) * 2);
}
}
}
}
Expand Down

0 comments on commit b647ec2

Please sign in to comment.