From 7c8c9af5af4366687347822bdb2031971099bcd8 Mon Sep 17 00:00:00 2001 From: Jaen Saul Date: Tue, 23 Sep 2025 20:33:01 +0300 Subject: [PATCH] refactor: Redundant argument defaults in `createSchema` The defaults were both in the default parameter value and later set using `??=`. --- src/create/schema/schema.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/create/schema/schema.ts b/src/create/schema/schema.ts index debfbc6a..2370787b 100644 --- a/src/create/schema/schema.ts +++ b/src/create/schema/schema.ts @@ -41,11 +41,7 @@ export const createSchema = ( */ schemaRefPath?: string; openapiVersion?: OpenApiVersion; - } = { - registry: createRegistry(), - io: 'output', - opts: {}, - }, + } = {}, ) => { ctx.registry ??= createRegistry({ schemas: ctx.schemaComponents,