Skip to content

Commit a2a37a6

Browse files
author
Mika Kunnas
committed
change naming a bit
1 parent b4c4895 commit a2a37a6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ function convert(schema, options) {
2828
}
2929

3030
function 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

0 commit comments

Comments
 (0)