Skip to content

Commit

Permalink
fix: cleanup some lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasmagri authored and jsdevel committed Feb 12, 2019
1 parent a6cfabe commit 4ca7eff
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/openapi-framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,17 @@ export default class OpenAPIFramework implements IOpenAPIFramework {
if (operationId && operationId in this.operations) {
const operation = this.operations[operationId];

console.log(operation);

acc[METHOD_ALIASES[method]] = (() => {
let _f: any = operation;
_f.apiDoc = methodDoc;
return _f;
let innerFunction: any = operation;
innerFunction.apiDoc = methodDoc;
return innerFunction;
})();
} else {
this.logger.warn(
`Operation ${operationId} not found in the operations parameter`
);
}

console.log(acc);
return acc;
}, {})
};
Expand Down

0 comments on commit 4ca7eff

Please sign in to comment.