File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,13 @@ const skippable = function (value) {
3838const 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
You can’t perform that action at this time.
0 commit comments