Skip to content

Commit a3cd221

Browse files
fake commit
1 parent ca8aef9 commit a3cd221

File tree

1 file changed

+2
-3
lines changed
  • packages/jsts/src/rules/S7639

1 file changed

+2
-3
lines changed

packages/jsts/src/rules/S7639/rule.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { generateMeta, isMemberWithProperty, isRequireModule } from '../helpers/
2222
import * as meta from './generated-meta.js';
2323

2424
const BLOCKCHAIN_MODULES = ['ethers', 'viem/accounts', 'tronweb'];
25-
2625
const MNEMONIC_FUNCTIONS = ['fromPhrase', 'mnemonicToAccount', 'fromMnemonic'];
2726

2827
export const rule: Rule.RuleModule = {
@@ -76,8 +75,8 @@ export const rule: Rule.RuleModule = {
7675
if (
7776
node.id.type === 'Identifier' &&
7877
node.init &&
79-
(node.init.type === 'Literal' && typeof node.init.value === 'string' ||
80-
node.init.type === 'TemplateLiteral' && node.init.expressions.length === 0)
78+
((node.init.type === 'Literal' && typeof node.init.value === 'string') ||
79+
(node.init.type === 'TemplateLiteral' && node.init.expressions.length === 0))
8180
) {
8281
hardcodedVariables.set(node.id.name, node.init);
8382
}

0 commit comments

Comments
 (0)