Skip to content

Commit

Permalink
Add newline only when set
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnymac committed Jul 30, 2024
1 parent 95f3cf1 commit 8186f10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/turborepo-lockfiles/src/berry/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ where
for (i, (setting, field)) in settings.iter().enumerate() {
if let Some(value) = setting {
string.push_str(&format!(" {}: {}", wrap_string(field), value));
}
if i < settings.len() - 1 {
string.push('\n');
if i < settings.len() - 1 {
string.push('\n');
}
}
}

Expand Down

0 comments on commit 8186f10

Please sign in to comment.