Skip to content

Commit

Permalink
Code style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 31, 2017
1 parent a5fbc8c commit b561b55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.js
Expand Up @@ -17,7 +17,9 @@ module.exports = (opts, minimistOpts) => {
loudRejection();

if (Array.isArray(opts) || typeof opts === 'string') {
opts = {help: opts};
opts = {
help: opts
};
}

opts = Object.assign({
Expand All @@ -29,7 +31,9 @@ module.exports = (opts, minimistOpts) => {
inferType: false
}, opts);

minimistOpts = Object.assign({string: ['_']}, minimistOpts);
minimistOpts = Object.assign({
string: ['_']
}, minimistOpts);

minimistOpts.default = decamelizeKeys(minimistOpts.default || {}, '-');

Expand Down

0 comments on commit b561b55

Please sign in to comment.