Skip to content

Commit 36a03de

Browse files
committed
Use Object#assign() for merging objects
1 parent c82a8b3 commit 36a03de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ module.exports = postcss.plugin(pkg.name, function (opts) {
145145
opts = {};
146146
}
147147

148-
if (!opts.sort) {
149-
opts.sort = false;
150-
}
148+
opts = Object.assign({
149+
sort: false
150+
}, opts);
151151

152152
return function (css) {
153153
const queries = {};

0 commit comments

Comments
 (0)