Skip to content

Commit

Permalink
cleanup console log
Browse files Browse the repository at this point in the history
  • Loading branch information
salamaashoush committed May 31, 2024
1 parent a97ebdc commit e8db867
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/prepare-version.mts
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ function updateCargoToml(nextVersion: string) {
pattern,
(_, p1) => `${p1}"${nextVersion}"`
);
console.log(newToml);
if (newToml === cargoToml) {
console.error("Cargo.toml didn't change, error!");
process.exitCode = 1;
return;
}

fs.writeFileSync(CARGO_TOML_PATH, newToml, "utf8");

console.log("Cargo.toml updated to version", nextVersion);
return nextVersion;
}

Expand Down

0 comments on commit e8db867

Please sign in to comment.