Skip to content

Commit

Permalink
fix: linting error because of unnecessary type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfwebb committed Dec 20, 2024
1 parent 0016759 commit 30651f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/graphql/src/translate/translate-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export default async function translateCreate({

const { createStrs, params } = mutationInputs.reduce(
(res, input, index) => {
const varName = varNameStrs[index] as string;
const varName = varNameStrs[index];
if (!varName) {
throw new Error("Expected varName to be defined");
}

const create = [`CALL {`];
const withVars = [varName];
projectionWith.push(varName);
Expand Down

0 comments on commit 30651f0

Please sign in to comment.