Skip to content

Commit c00d2ed

Browse files
lint
1 parent 318f268 commit c00d2ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/start-plugin-core/src/start-compiler-plugin/handleCreateServerFn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export function handleCreateServerFn(
335335

336336
// Find the variable declaration statement containing our createServerFn
337337
const variableDeclaration = candidatePath.parentPath.parentPath
338-
if (!variableDeclaration?.isVariableDeclaration()) {
338+
if (!variableDeclaration.isVariableDeclaration()) {
339339
throw new Error(
340340
'Expected createServerFn to be in a VariableDeclaration',
341341
)

0 commit comments

Comments
 (0)