Skip to content

Commit

Permalink
Make ESLint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Ciocanu committed Dec 29, 2022
1 parent c662f32 commit 5ef8efc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interpreter/Interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export class Interpreter {
const: interpretConst,
enum: interpretEnum
};
static NOOP_FUNC = (): void => { return; };

private anonymCounter = 1;
private seenSchemas: Map<InterpreterSchemaType, CommonModel> = new Map();
Expand Down Expand Up @@ -101,6 +100,7 @@ export class Interpreter {
}
}

/* eslint-disable sonarjs/cognitive-complexity */
private interpretSchemaObject(model: CommonModel, schema: InterpreterSchemas, interpreterOptions: InterpreterOptions = Interpreter.defaultInterpreterOptions) {
if (schema.type !== undefined) {
model.addTypes(schema.type);
Expand Down Expand Up @@ -149,6 +149,7 @@ export class Interpreter {
//All schemas MUST have ids as we do not know how it will be generated and when it will be needed
model.$id = interpretName(schema) || `anonymSchema${this.anonymCounter++}`;
}
/* eslint-enable sonarjs/cognitive-complexity */

/**
* Go through a schema and combine the interpreted models together.
Expand Down

0 comments on commit 5ef8efc

Please sign in to comment.