diff --git a/sdk/typescript/scripts/update-graphql-schemas.ts b/sdk/typescript/scripts/update-graphql-schemas.ts index 6b61a28b3b2bda..4a3843ede5cbcb 100644 --- a/sdk/typescript/scripts/update-graphql-schemas.ts +++ b/sdk/typescript/scripts/update-graphql-schemas.ts @@ -30,7 +30,7 @@ const result = execSync(`git branch --remote --list "origin/releases/sui-graphql patch, branch, schema: `https://raw.githubusercontent.com/MystenLabs/sui/${branch}/crates/sui-graphql-rpc/schema.graphql`, - } + } : null; }) .filter((x): x is NonNullable => x !== null);