Skip to content

Commit ca66c41

Browse files
author
Mark
committed
clean
1 parent 36a2bed commit ca66c41

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Validations/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ const skippable = function (value) {
3838
const getSize = function (fieldValue, hasNumericRule, hasFileRule) {
3939
hasNumericRule = _.isUndefined(hasNumericRule) ? false : hasNumericRule;
4040
hasFileRule = _.isUndefined(hasFileRule) ? false : hasFileRule;
41-
console.log(hasFileRule);
4241
if (Raw.numeric(fieldValue) && hasNumericRule) {
4342
return fieldValue;
4443
} else if (fieldValue instanceof Array) {
4544
return fieldValue.length;
4645
} else if (hasFileRule) {
4746
const stat = fs.statSync(fieldValue.path);
4847
const size = _.get(stat, 'size');
49-
console.log(fieldValue.path, size, ( size / 1024 ).toFixed(2) * 1);
5048
if (!_.isUndefined(size)) return (size / 1024).toFixed(2) * 1;
5149
}
5250

0 commit comments

Comments
 (0)