Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: typo
  • Loading branch information
DuanPengfei committed Jun 22, 2017
commit 0864e8eafe4f5539d225b3623e6b16746274378a
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