Skip to content

Commit c82de0b

Browse files
ovrclaude
andcommitted
refactor: rename OptsHandler.validateOptions to sanitizeOptions
Says what the method returns, and no longer shares a name with the imported validateOptions it calls. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 3a5784b commit c82de0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cubejs-server-core/src/core/OptsHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class OptsHandler {
4040
private createOptions: CreateOptions,
4141
private systemOptions?: SystemOptions,
4242
) {
43-
const options = this.validateOptions(cloneDeep(this.createOptions));
43+
const options = this.sanitizeOptions(cloneDeep(this.createOptions));
4444
const driverFactory = this.getDriverFactory(options);
4545
options.driverFactory = driverFactory;
4646
options.dbType = this.getDbType(driverFactory);
@@ -60,7 +60,7 @@ export class OptsHandler {
6060

6161
private initializedOptions: ServerCoreInitializedOptions;
6262

63-
private validateOptions<T extends CreateOptions>(opts: T): T {
63+
private sanitizeOptions<T extends CreateOptions>(opts: T): T {
6464
if ((opts as any).dbType) {
6565
throw new Error(
6666
'CreateOptions.dbType was removed in v1.7.0. ' +

0 commit comments

Comments
 (0)