Skip to content

Commit

Permalink
Codacy (guard-for-in) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul0813 committed Dec 13, 2018
1 parent 892469e commit 4e81d2d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ const fieldComponents = require("./utils/fieldsLoader").default;
const abstractField = require("./fields/abstractField").default;
const install = (Vue, options) => {
Vue.component("VueFormGenerator", module.exports.component);
if(options && options.validators) {
for(let key in options.validators) {
validators[key] = options.validators[key];
if (options && options.validators) {
for (let key in options.validators) {
if ({}.hasOwnProperty.call(options.validators, key)) {
validators[key] = options.validators[key];
}
}
}
};
Expand Down

0 comments on commit 4e81d2d

Please sign in to comment.