Skip to content

Commit

Permalink
Use Object#assign() for merging objects
Browse files Browse the repository at this point in the history
  • Loading branch information
hail2u committed Jan 28, 2017
1 parent c82a8b3 commit 36a03de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -145,9 +145,9 @@ module.exports = postcss.plugin(pkg.name, function (opts) {
opts = {};
}

if (!opts.sort) {
opts.sort = false;
}
opts = Object.assign({
sort: false
}, opts);

return function (css) {
const queries = {};
Expand Down

0 comments on commit 36a03de

Please sign in to comment.