Skip to content

Commit

Permalink
Remove extra newline
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Aug 21, 2024
1 parent 2d62b2e commit 834510e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/uv-scripts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ impl Pep723Script {
pub async fn write(&self, metadata: &str) -> Result<(), Pep723Error> {
let content = format!(
"{}{}{}",
if self.prelude.is_empty() {
String::new()
} else {
format!("{}\n", self.prelude)
},
self.prelude,
serialize_metadata(metadata),
self.postlude
);
Expand Down

0 comments on commit 834510e

Please sign in to comment.