Skip to content

Commit 3a75a7f

Browse files
committed
Lint fix
1 parent 600280d commit 3a75a7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/commands/init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ async function processInitForm(
835835
await promptManager.executeInteractive();
836836

837837
// Validate network matches if loading from IPFS
838-
if (ipfsNode && source && source.startsWith('Qm')) {
838+
if (ipfsNode && source?.startsWith('Qm')) {
839839
const ipfs = createIpfsClient(ipfsNode);
840840
try {
841841
const { valid, error } = await validateSubgraphNetworkMatch(ipfs, source!, network.id);
@@ -844,7 +844,7 @@ async function processInitForm(
844844
}
845845
} catch (e) {
846846
if (e instanceof Error) {
847-
print.error(`Failed to validate subgraph network: ${e.message}`);
847+
print.error(`Failed to validate subgraph network: ${e?.message}`);
848848
}
849849
throw e;
850850
}

0 commit comments

Comments
 (0)