Skip to content

Commit

Permalink
chore: remove uneeded if
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Dec 19, 2024
1 parent 79fcc70 commit 05e247e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions e2e-tests/test/anvil-apis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,13 @@ describe("anvil_setLoggingEnabled", function () {
// Act
await provider.send("anvil_setLoggingEnabled", [false]);

let logSizeBefore = 0;
if (fs.existsSync(logFilePath)) {
logSizeBefore = fs.statSync(logFilePath).size;
}
const logSizeBefore = fs.statSync(logFilePath).size;

await wallet.sendTransaction({
to: userWallet.address,
value: ethers.parseEther("0.1"),
});

let logSizeAfter = 0;
if (fs.existsSync(logFilePath)) {
logSizeAfter = fs.statSync(logFilePath).size;
}
const logSizeAfter = fs.statSync(logFilePath).size;

// Reset
await provider.send("anvil_setLoggingEnabled", [true]);
Expand Down

0 comments on commit 05e247e

Please sign in to comment.