Skip to content

Commit 0d7f9ee

Browse files
committed
linter fix
1 parent a7e718c commit 0d7f9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export class DataSchemaCompiler {
386386
} else {
387387
const foundFile = this.resolveModuleFile(file, extensionName, transpiledFiles, errorsReport);
388388
if (!foundFile && this.allowNodeRequire) {
389-
if (extensionName.indexOf('.') === 0) {
389+
if (extensionName.startsWith('.')) {
390390
extensionName = path.resolve(this.repository.localPath(), extensionName);
391391
}
392392
// eslint-disable-next-line global-require,import/no-dynamic-require

0 commit comments

Comments
 (0)