refac(cmd/push): change split to lines
This commit is contained in:
parent
25ea845448
commit
7bf0ab43a2
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ impl StreamCommand for PushCommand<'_> {
|
|||
}
|
||||
|
||||
fn remove_multiline(text: &str) -> String {
|
||||
text.split('\n')
|
||||
text.lines()
|
||||
.enumerate()
|
||||
.fold(String::new(), |mut acc, (i, line)| {
|
||||
if i != 0 && !line.is_empty() && !acc.is_empty() && !acc.ends_with(' ') {
|
||||
|
|
Loading…
Reference in a new issue