Skip to content

Commit b9f2779

Browse files
committed
Fix issues reported by semistandard
1 parent cf68abb commit b9f2779

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

linker.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ function libraryHashPlaceholder (input) {
99
}
1010

1111
var linkBytecode = function (bytecode, libraries, linkReferences) {
12-
1312
if (typeof linkReferences === typeof '' || linkReferences === null || linkReferences === undefined) {
1413
linkReferences = findLinkReferences(bytecode);
1514
}
@@ -62,12 +61,11 @@ var linkBytecode = function (bytecode, libraries, linkReferences) {
6261
var end = (reference.start + reference.length) * 2;
6362
bytecode = bytecode.slice(0, start) + hexAddress + bytecode.slice(end);
6463
});
65-
6664
} else {
6765
// manually find and replace if link reference is not present
6866
findAndReplace(name);
6967
}
70-
}
68+
};
7169

7270
replace(libraryName);
7371
replace(libraryHashPlaceholder(libraryName));

0 commit comments

Comments
 (0)