Skip to content

Commit

Permalink
chore: remove undefined and unnecessary destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Oct 19, 2023
1 parent cc446f3 commit cdb6085
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const multiOrderBookApiOption = new Option(
const orderBookApiOption = new Option(
"--orderBookApi <orderBookApi>",
"Orderbook API base URL (i.e. https://api.cow.fi/mainnet)"
).default(undefined);
);

async function main() {
program.name("watch-tower").description(description).version(version);
Expand All @@ -130,7 +130,7 @@ async function main() {
.addOption(disableNotificationsOption)
.addOption(slackWebhookOption)
.action((options) => {
const { logLevel, orderBookApi } = options;
const { logLevel } = options;

const [pageSize, apiPort, watchdogTimeout, deploymentBlock] = [
options.pageSize,
Expand All @@ -145,7 +145,6 @@ async function main() {
run({
...options,
deploymentBlock,
orderBookApi,
pageSize,
apiPort,
watchdogTimeout,
Expand Down

0 comments on commit cdb6085

Please sign in to comment.