Skip to content

Commit

Permalink
fix: unmake unnneded changes due to carriage returns
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-Redondo committed May 24, 2024
1 parent 7464bd2 commit 17ea071
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/bautajs-core/src/bauta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export class BautaJS implements BautaJSInstance {
if (this.bootstrapped === true) {
throw new Error('The instance has already being bootstrapped.');
}

if (this.apiDefinition) {
const parser = new Parser(this.logger);
const parsedApiDefinition = await parser.asyncParse(this.apiDefinition);
Expand Down Expand Up @@ -275,10 +274,8 @@ export class BautaJS implements BautaJSInstance {
'The given instance is not bootstrapped, thus operation schema will be no inherited.'
);
}

Object.keys(bautajsInstance.operations).forEach(operationId => {
const operation = bautajsInstance.operations[operationId];

if (
operation.deprecated !== true &&
!Object.prototype.hasOwnProperty.call(this.operations, operationId)
Expand All @@ -296,7 +293,6 @@ export class BautaJS implements BautaJSInstance {
}
}
});

return this;
}
}
Expand Down
2 changes: 0 additions & 2 deletions packages/bautajs-fastify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ export async function bautajsFastify(
fastify: FastifyInstance,
opts: BautaJSFastifyPluginOptions
): Promise<void>;

export async function bautajsFastify(
fastify: FastifyInstance,
opts: BautaJSFastifyPluginOptions & bautaJS.BautaJSOptions
): Promise<void>;

export async function bautajsFastify(fastify: FastifyInstance, opts: any) {
const bautajs = opts.bautajsInstance
? opts.bautajsInstance
Expand Down

0 comments on commit 17ea071

Please sign in to comment.