diff --git a/.eslintrc.js b/.eslintrc.js index f23b85b9ea7..66eaa95e624 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -47,7 +47,6 @@ module.exports = { }, ], - 'callback-return': 'off', 'camelcase': 'off', 'consistent-return': 'off', 'default-case': 'off', diff --git a/tests/TransactionController.test.ts b/tests/TransactionController.test.ts index bdcd04de6d9..d0639d95afd 100644 --- a/tests/TransactionController.test.ts +++ b/tests/TransactionController.test.ts @@ -13,6 +13,7 @@ jest.mock('eth-query', () => estimateGas: (_transaction: any, callback: any) => { if (mockFlags.estimateGas) { callback(new Error(mockFlags.estimateGas)); + return; } callback(undefined, '0x0'); },