xtask: Fix inverted conditions
@@ -96,10 +96,10 @@ impl Package {
..self.version.clone()
};
- let update = if !changelog.starts_with(&format!("# {}\n", version)) {
+ let update = if changelog.starts_with(&format!("# {}\n", version)) {
false
} else if changelog.starts_with(&format!("# {} (unreleased)\n", version))
- || !changelog.starts_with("# [unreleased]\n")
+ || changelog.starts_with("# [unreleased]\n")
{
update
} else {
