File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,22 +28,22 @@ function convert(schema, options) {
2828}
2929
3030function convertSchema ( schema , options ) {
31- var arrays = options . _structs
31+ var structs = options . _structs
3232 , notSupported = options . _notSupported
3333 , i = 0
3434 , j = 0
35- , arr = null
35+ , struct = null
3636 ;
3737
38- for ( i ; i < arrays . length ; i ++ ) {
39- arr = arrays [ i ] ;
38+ for ( i ; i < structs . length ; i ++ ) {
39+ struct = structs [ i ] ;
4040
41- if ( Array . isArray ( schema [ arr ] ) ) {
42- for ( j ; j < schema [ arr ] . length ; j ++ ) {
43- schema [ arr ] [ j ] = convertSchema ( schema [ arr ] [ j ] , options ) ;
41+ if ( Array . isArray ( schema [ struct ] ) ) {
42+ for ( j ; j < schema [ struct ] . length ; j ++ ) {
43+ schema [ struct ] [ j ] = convertSchema ( schema [ struct ] [ j ] , options ) ;
4444 }
45- } else if ( typeof schema [ arr ] === 'object' ) {
46- schema [ arr ] = convertSchema ( schema [ arr ] , options ) ;
45+ } else if ( typeof schema [ struct ] === 'object' ) {
46+ schema [ struct ] = convertSchema ( schema [ struct ] , options ) ;
4747 }
4848 }
4949
You can’t perform that action at this time.
0 commit comments