Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mergeConditional (0.29 sec)

  1. operator/pkg/tpath/tree.go

    		nc.Node = vv
    	default:
    		return false, fmt.Errorf("don't know about type %T", parentNode)
    	}
    
    	return true, nil
    }
    
    // mergeConditional returns a merge of newVal and originalVal if merge is true, otherwise it returns newVal.
    func mergeConditional(newVal, originalVal any, merge bool) (any, error) {
    	if !merge || util.IsValueNilOrDefault(originalVal) {
    		return newVal, nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.5K bytes
    - Viewed (0)
Back to top