Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OneStorage] Rename function #1448

Merged
merged 1 commit into from
Nov 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/OneExplorer/OneStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class OneStorage {
* @param root the file or directory,
* which MUST exist in the file system
*/
private _initCfgList(roots: string[] = obtainWorkspaceRoots()): string[] {
private _getCfgList(roots: string[] = obtainWorkspaceRoots()): string[] {
/**
* Returns an array of all the file names inside the root directory
* @todo Check soft link
Expand All @@ -96,7 +96,7 @@ export class OneStorage {
return roots.map(root => readdirSyncRecursive(root).filter(val => val.endsWith('.cfg')))
.reduce((prev, cur) => [...prev, ...cur]);
} catch {
Logger.error('OneExplorer', '_initCfgList', 'called on not existing directory or file.');
Logger.error('OneExplorer', '_getCfgList()', 'called on not existing directory or file.');
return [];
}
}
Expand Down Expand Up @@ -148,7 +148,7 @@ export class OneStorage {
}

private constructor() {
const cfgList = this._initCfgList();
const cfgList = this._getCfgList();
this._cfgToCfgObjMap = this._initCfgToCfgObjMap(cfgList);
this._baseModelToCfgsMap = this._initBaseModelToCfgsMap(cfgList, this._cfgToCfgObjMap);
}
Expand Down