Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiKillertO committed Jul 29, 2020
1 parent c0664a3 commit d02eeb6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/presets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,3 @@ presets.accessibility = presetsA11y;
presets.validate = presetsValidate;
presets.default = presetsDefault;
module.exports.presets = presets;

module.exports.flattenOpts = function(optList) {
let options = {};
optList.forEach(function(opt) {
if (typeof opt === "string") {
opt = presets[opt];
}
options = {
...options,
...opt
};
});

return options;
};

0 comments on commit d02eeb6

Please sign in to comment.