mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
style(data-source): 删除无用注释
This commit is contained in:
parent
5e61f23106
commit
80040a69ef
@ -32,7 +32,6 @@ import { compiledNodeField, compliedConditions, compliedIteratorItem, createIter
|
||||
|
||||
class DataSourceManager extends EventEmitter {
|
||||
private static dataSourceClassMap = new Map<string, typeof DataSource>();
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
private static ObservedDataClass: ObservedDataClass = SimpleObservedData;
|
||||
|
||||
public static register<T extends typeof DataSource = typeof DataSource>(type: string, dataSource: T) {
|
||||
@ -130,7 +129,6 @@ class DataSourceManager extends EventEmitter {
|
||||
public async addDataSource(config?: DataSourceSchema) {
|
||||
if (!config) return;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
const DataSourceClass = DataSourceManager.dataSourceClassMap.get(config.type) || DataSource;
|
||||
|
||||
const ds = new DataSourceClass({
|
||||
|
Loading…
x
Reference in New Issue
Block a user