Skip to content

Commit

Permalink
Fix issues reported by semistandard
Browse files Browse the repository at this point in the history
  • Loading branch information
arthcp committed Dec 4, 2018
1 parent cf68abb commit b9f2779
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions linker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function libraryHashPlaceholder (input) {
}

var linkBytecode = function (bytecode, libraries, linkReferences) {

if (typeof linkReferences === typeof '' || linkReferences === null || linkReferences === undefined) {
linkReferences = findLinkReferences(bytecode);
}
Expand Down Expand Up @@ -62,12 +61,11 @@ var linkBytecode = function (bytecode, libraries, linkReferences) {
var end = (reference.start + reference.length) * 2;
bytecode = bytecode.slice(0, start) + hexAddress + bytecode.slice(end);
});

} else {
// manually find and replace if link reference is not present
findAndReplace(name);
}
}
};

replace(libraryName);
replace(libraryHashPlaceholder(libraryName));
Expand Down

0 comments on commit b9f2779

Please sign in to comment.