Skip to content

Commit

Permalink
nit: rename yieldPotentialPaths function to genModulePaths
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 1, 2020
1 parent e1cf4af commit 55e7142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/metro-resolver/src/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function resolve(
}

const modulePaths = [];
for (let modulePath of yieldPotentialPaths(context, realModuleName)) {
for (let modulePath of genModulePaths(context, realModuleName)) {
modulePath = context.redirectModulePath(modulePath);

const result = resolveFileOrDir(context, modulePath, platform);
Expand All @@ -110,7 +110,7 @@ function resolve(
}

/** Generate the potential module paths */
function* yieldPotentialPaths(
function* genModulePaths(
context: ResolutionContext,
toModuleName: string,
): Iterable<string> {
Expand Down

0 comments on commit 55e7142

Please sign in to comment.