Skip to content

Commit

Permalink
evm: remove remaining isTruthy
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Aug 31, 2022
1 parent 84db1a1 commit 815b379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/evm/tests/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Chain, Common } from '@ethereumjs/common'
import { DefaultStateManager } from '@ethereumjs/statemanager'
import { Account, isTruthy } from '@ethereumjs/util'
import { Account } from '@ethereumjs/util'
import path from 'path'

import { Blockchain } from '../../blockchain/src'
Expand All @@ -24,7 +24,7 @@ export function createAccount(nonce = BigInt(0), balance = BigInt(0xfff384)) {
*/
export function isRunningInKarma(): boolean {
// eslint-disable-next-line no-undef
return isTruthy((<any>globalThis).window?.__karma__)
return (<any>globalThis).window?.__karma__ !== undefined
}

/**
Expand Down

0 comments on commit 815b379

Please sign in to comment.