Skip to content

Commit 9f097d2

Browse files
committed
Fix JS lint
1 parent c25a576 commit 9f097d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/replace-imports.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ glob('contracts/**/*.sol', null, function (err, files) {
2828
// Replace the TokenApprovalRef to break cyclic importing.
2929
let erc721aFilepath = 'contracts/ERC721AUpgradeable.sol';
3030
let erc721aContents = fs.readFileSync(erc721aFilepath, 'utf8');
31-
let tokenApprovalRefRe = /\/\/.*?\n\r?\s*struct TokenApprovalRef\s*\{[^\}]+\}/;
31+
let tokenApprovalRefRe = /\/\/.*?\n\r?\s*struct TokenApprovalRef\s*\{[^}]+\}/;
3232
let tokenApprovalRefMatch = erc721aContents.match(tokenApprovalRefRe);
3333
if (tokenApprovalRefMatch) {
3434
erc721aContents = erc721aContents
@@ -43,5 +43,5 @@ if (tokenApprovalRefMatch) {
4343
.replace(/ERC721AUpgradeable.TokenApprovalRef/g, 'ERC721AStorage.TokenApprovalRef')
4444
.replace(/import.*?\.\/ERC721AUpgradeable.sol[^;]+;/, '');
4545

46-
fs.writeFileSync(erc721aStorageFilepath, erc721aStorageContents);
46+
fs.writeFileSync(erc721aStorageFilepath, erc721aStorageContents);
4747
}

0 commit comments

Comments
 (0)