Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanPengfei committed Jun 22, 2017
1 parent 466faeb commit 0864e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ function assertPath(path) {

function assertWindowsPlatform(platform) {
// throw an error if direct use the function on *nix platform
if (process.platform !== 'win32')
if (platform !== 'win32')
throw new errors.Error('ERR_UNSUPPORTED_PLATFORM');
}

function assertPosixPlatform(platform) {
// throw an error if direct use the function on windows platform
if (process.process === 'win32')
if (platform === 'win32')
throw new errors.Error('ERR_UNSUPPORTED_PLATFORM');
}

Expand Down

0 comments on commit 0864e8e

Please sign in to comment.