diff --git a/src/deb/local.rs b/src/deb/local.rs index 4da4e6c..b65bd80 100644 --- a/src/deb/local.rs +++ b/src/deb/local.rs @@ -1624,9 +1624,10 @@ fn series_patches_to_apply(series_content: &str, single_debian_patch: bool) -> V .lines() .map(str::trim) .filter(|entry| { - !entry.is_empty() - && !entry.starts_with('#') - && !(single_debian_patch && is_debian_changes(entry)) + if entry.is_empty() || entry.starts_with('#') { + return false; + } + !(single_debian_patch && is_debian_changes(entry)) }) .collect() }