Skip to content

Commit

Permalink
Merge pull request #335 from miltador/patch-1
Browse files Browse the repository at this point in the history
Fixed getting platform option of process.platform
  • Loading branch information
dduponchel committed Aug 18, 2016
2 parents ec9505e + c3e34e7 commit 65afc25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ var out = {

// accept nodejs `process.platform`
if(
options.platform === 'darwin' ||
options.platform === 'freebsd' ||
options.platform === 'linux' ||
options.platform === 'sunos'
opts.platform === 'darwin' ||
opts.platform === 'freebsd' ||
opts.platform === 'linux' ||
opts.platform === 'sunos'
) {
options.platform = "UNIX";
opts.platform = "UNIX";
}
if (options.platform === 'win32') {
options.platform = "DOS";
if (opts.platform === 'win32') {
opts.platform = "DOS";
}

var comment = opts.comment || this.comment || "";
Expand Down

0 comments on commit 65afc25

Please sign in to comment.