Skip to content

Commit

Permalink
correctly assign props of the env option
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 29, 2016
1 parent 3bce80f commit c195bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ module.exports = opts => {

module.exports.env = opts => {
opts = Object.assign({
env: Object.assign({}, process.env)
env: process.env
}, opts);

const env = opts.env;
const env = Object.assign({}, opts.env);
const path = pathKey({env});

opts.path = env[path];
Expand Down

0 comments on commit c195bdc

Please sign in to comment.