Skip to content

Commit

Permalink
remove unused no-non-null-assertion override eslint-disable directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
philfuster committed Apr 18, 2024
1 parent 3143131 commit dbfe610
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class Schema {
if (positionPaths.has(positionPath)) {
// find the key in position paths
// add position
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const [dbPosition] = positionPaths.get(positionPath)!;
acc.add(dbPosition + 1);
} else if (!positionPath.includes('.')) {
Expand All @@ -164,7 +163,6 @@ class Schema {
);
matchedPositionPaths.forEach((key) => {
// add child position
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const [dbPosition] = positionPaths.get(key)!;
acc.add(dbPosition + 1);
});
Expand Down
1 change: 0 additions & 1 deletion src/compileModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export type ModelSaveOptions = ModelDatabaseExecutionOptions;
// #endregion

/** Define a new model */
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
const compileModel = <TSchema extends GenericObject = GenericObject>(
connection: Connection,
schema: Schema | null,
Expand Down
2 changes: 0 additions & 2 deletions src/schemaType/BaseScalarType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ abstract class BaseScalarType extends BaseSchemaType implements DataTransformer

/** Encrypt a single value */
private encryptSingle(value: string | null): string | null {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return value == null ? value : this.encrypt!(value);
}

Expand All @@ -236,7 +235,6 @@ abstract class BaseScalarType extends BaseSchemaType implements DataTransformer

/** Decrypt a single value */
private decryptSingle(value: MvDataType): MvDataType {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return typeof value !== 'string' ? value : this.decrypt!(value);
}
}
Expand Down

0 comments on commit dbfe610

Please sign in to comment.