Skip to content

Commit eda2e9c

Browse files
committedDec 29, 2017
refactor(utils): remove useless fallback
1 parent e9f62f2 commit eda2e9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export function extractRefs (doc, oldDoc, path = '', result = [{}, {}]) {
2626
} else if (Array.isArray(ref)) {
2727
// TODO handle array
2828
tot[0][key] = Array(ref.length).fill(null)
29-
extractRefs(ref, oldDoc[key] || {}, path + key + '.', [tot[0][key], tot[1]])
29+
extractRefs(ref, oldDoc[key], path + key + '.', [tot[0][key], tot[1]])
3030
} else if (isObject(ref)) {
3131
tot[0][key] = {}
32-
extractRefs(ref, oldDoc[key] || {}, path + key + '.', [tot[0][key], tot[1]])
32+
extractRefs(ref, oldDoc[key], path + key + '.', [tot[0][key], tot[1]])
3333
} else {
3434
tot[0][key] = ref
3535
}

0 commit comments

Comments
 (0)
Please sign in to comment.