xtask: Fix inverted conditions

This commit is contained in:
Jonas Platte 2022-04-28 17:14:50 +02:00
parent e5388254bb
commit 222c57ff8a
No known key found for this signature in database
GPG Key ID: BBA95679259D342F

View File

@ -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 {