Skip to content

Commit

Permalink
resolve panic if value is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottCUSA authored and QEDK committed Aug 13, 2023
1 parent 1098ef7 commit 16fa334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ini.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ impl Ini {
if multiline {
let mut lines = value.lines();

out.push_str(lines.next().unwrap());
out.push_str(lines.next().unwrap_or_default());

for line in lines {
out.push_str(LINE_ENDING);
Expand Down

0 comments on commit 16fa334

Please sign in to comment.