Skip to content

Commit

Permalink
remove unnecessary return
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Nov 10, 2023
1 parent 374bad9 commit 603fc72
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/core/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,6 @@ export const createConfig = <
("address" in contract && contract.address);
if (resolvedFactory && resolvedAddress)
throw Error("Factory and address cannot both be defined");

return {
name: contractOverride.name,
factory: resolvedFactory,
address: resolvedAddress,
startBlock: contractOverride.startBlock ?? contract.startBlock,
endBlock: contractOverride.endBlock ?? contract.endBlock,
maxBlockRange: contractOverride.maxBlockRange ?? contract.maxBlockRange,
filter: contractOverride.filter ?? contract.filter,
};
});
});

Expand Down

0 comments on commit 603fc72

Please sign in to comment.