Skip to content

Commit a2c1c93

Browse files
committed
refactor coerce rename out to valOut
1 parent 756a0ee commit a2c1c93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/coerce.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,15 +389,15 @@ exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt
389389
var coerceFunction = exports.valObjectMeta[opts.valType].coerceFunction;
390390
coerceFunction(valIn, propOut, dflt, opts);
391391

392-
var out = propOut.get();
392+
var valOut = propOut.get();
393393
// in case v was provided but invalid, try the template again so it still
394394
// overrides the regular default
395-
if(template && out === dflt && !validate(valIn, opts)) {
395+
if(template && valOut === dflt && !validate(valIn, opts)) {
396396
valIn = nestedProperty(template, attribute).get();
397397
coerceFunction(valIn, propOut, dflt, opts);
398-
out = propOut.get();
398+
valOut = propOut.get();
399399
}
400-
return out;
400+
return valOut;
401401
};
402402

403403
/**

0 commit comments

Comments
 (0)