Skip to main content

check_diff_size

Function check_diff_size 

Source
pub fn check_diff_size(diff: &str, limit: usize) -> Result<(), PreflightError>
Expand description

Checks whether the diff content exceeds the given limit.

Returns Ok(()) if within limit, Err(DiffTooLarge) if exceeded.