Skip to content

Commit 2de05a0

Browse files
ci: apply automated fixes
1 parent 09aef82 commit 2de05a0

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎packages/start-plugin-core/src/create-server-fn-plugin/handleCreateMiddleware.ts‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ export function handleCreateMiddleware(
4949
}
5050

5151
// remove the validator call expression
52-
if (
53-
t.isMemberExpression(callExpressionPaths.inputValidator.node.callee)
54-
) {
52+
if (t.isMemberExpression(callExpressionPaths.inputValidator.node.callee)) {
5553
callExpressionPaths.inputValidator.replaceWith(
5654
callExpressionPaths.inputValidator.node.callee.object,
5755
)
@@ -62,10 +60,7 @@ export function handleCreateMiddleware(
6260
'arguments.0',
6361
) as babel.NodePath<any>
6462

65-
if (
66-
callExpressionPaths.server &&
67-
serverFnPath.node
68-
) {
63+
if (callExpressionPaths.server && serverFnPath.node) {
6964
// remove the server call expression
7065
if (t.isMemberExpression(callExpressionPaths.server.node.callee)) {
7166
callExpressionPaths.server.replaceWith(

0 commit comments

Comments
 (0)