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 Dec 26, 2018
1 parent 0134ab1 commit 761b73e
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 @@ -104,7 +104,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 @@ -118,7 +118,7 @@ function resolve(
}

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

0 comments on commit 761b73e

Please sign in to comment.