Skip to content

Commit ef4dc7a

Browse files
committed
rename findFile function in config manager
1 parent 55a98ba commit ef4dc7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/lib/config-manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class ConfigManager {
7171
// if no config is specified, search current and parent directories for default config files.
7272
// Only the first found config will be loaded.
7373
for (const defaultPath of DEFAULT_CONFIG_PATHS) {
74-
const resolved = ConfigManager._fileExistsRecursive(defaultPath);
74+
const resolved = ConfigManager._findFirstFileRecursive(defaultPath);
7575

7676
if (resolved) {
7777
console.warn(`Found config at '${chalk.white(resolved)}'`);
@@ -120,7 +120,7 @@ export class ConfigManager {
120120
* @returns {string | null} The absolute path to the file or null if it doesn't exist.
121121
* @private
122122
*/
123-
static _fileExistsRecursive(filePath) {
123+
static _findFirstFileRecursive(filePath) {
124124
const maxDepth = 64;
125125

126126
let absPath = filePath;

0 commit comments

Comments
 (0)