npv2k1 / web3-todo-app

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
a year agoa year old
Expected to return a value at the end of async arrow function
 3import Web3 from "web3";
 4declare var window: any
 5
 6const getWeb3 = async () => { 7  // Wait for loading completion to avoid race conditions with web3 injection timing.
 8  if (window.ethereum) {
 9    const web3 = new Web3(window.ethereum);