Skip to content

Commit

Permalink
lib: fix typo in comments in module.js
Browse files Browse the repository at this point in the history
A minor typo in comments, no logic changes.

PR-URL: #12528
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: David Cai <[email protected]>
Reviewed-By: Jeremy Whitlock <[email protected]>
  • Loading branch information
WORMSS authored and evanlucas committed May 2, 2017
1 parent 989d344 commit cbdf9a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ if (process.platform === 'win32') {
// The path segment separator check ('\' and '/') was used to get
// node_modules path for every path segment.
// Use colon as an extra condition since we can get node_modules
// path for dirver root like 'C:\node_modules' and don't need to
// parse driver name.
// path for drive root like 'C:\node_modules' and don't need to
// parse drive name.
if (code === 92/*\*/ || code === 47/*/*/ || code === 58/*:*/) {
if (p !== nmLen)
paths.push(from.slice(0, last) + '\\node_modules');
Expand Down

0 comments on commit cbdf9a9

Please sign in to comment.