Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #425 from henricavalcante/default-options
Browse files Browse the repository at this point in the history
added default options to empty object
  • Loading branch information
mcollina committed Feb 27, 2016
2 parents b293f5d + 5e97a7e commit c77b48d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ module.exports = {
* @return {Object} Modernized options
*/
function modernize(legacy) {

legacy = legacy || {};

var modernized = {};

// "plain copyable" conserved options
Expand Down

0 comments on commit c77b48d

Please sign in to comment.