jkaluza / odcs

Forked from odcs 6 years ago
Clone

9d8c2b5 Reduce duplicate code in patch and post view methods

Authored and Committed by cqi 6 years ago
    Reduce duplicate code in patch and post view methods
    
    Both compose owner and seconds_to_lives are required and used in patch
    and post view methods, which have same rule to validate and get default
    value. Moving those code into dedicated method to avoid duplicate.
    
    Signed-off-by: Chenxiong Qi <cqi@redhat.com>
    
        
file modified
+27 -36