Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function todo_data( Parent, Child, value ){
if ( value ) {
if ( Child.data ) {
augment( Child.data, value );
} else {
Child.data = value;
}
}
if ( Parent.data ) {
let value = Parent.data;
if ( value ) {
if ( Child.data ) {
augment( Child.data, value );
} else {
Child.data = value;
}
}
if ( value ) {
if ( Child.data ) {
augment( Child.data, value );
} else {
Child.data = value;
}
}
if ( Parent.data ) {
let value = Parent.data;
if ( value ) {
if ( Child.data ) {
augment( Child.data, value );
} else {
Child.data = value;
}
}
}
}