docs icon indicating copy to clipboard operation
docs copied to clipboard

fix: Refactor: Remove Redundant Type Assertion in Ethereum Check

Open famouswizard opened this issue 1 year ago • 0 comments

I noticed a redundancy in the type assertion within the Ethereum check:

if (!(window as any as any).ethereum) return false;

Using as any as any is unnecessary and doesn't add any value. I've cleaned it up to this:

if (!(window as any).ethereum) return false;

This adjustment simplifies the code while maintaining its functionality.

famouswizard avatar Jan 07 '25 16:01 famouswizard