Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Dec 16, 2024
1 parent a0d9d7f commit dcf24e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@ async function processInitForm(
.map(networkToChoice)
.filter(({ value }) => (value ?? '').includes(input.toLowerCase())),
),
validate: value => (value === 'N/A' || networks.find(n => n.id === value)) ? true : 'Pick a network',
validate: value =>
value === 'N/A' || networks.find(n => n.id === value) ? true : 'Pick a network',
result: value => {
initDebugger.extend('processInitForm')('networkId: %O', value);
const foundNetwork = networks.find(n => n.id === value);
Expand All @@ -495,8 +496,7 @@ async function processInitForm(
https://github.com/graphprotocol/networks-registry
To add a chain to the registry you can create an issue or submit a PR`
);
To add a chain to the registry you can create an issue or submit a PR`);
process.exit(0);
}
network = foundNetwork;
Expand Down

0 comments on commit dcf24e8

Please sign in to comment.