Skip to content

Commit

Permalink
Update src/utils/chunks/upload.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Zivota <[email protected]>
  • Loading branch information
szokeasaurusrex and loewenheim authored Dec 18, 2024
1 parent 0c48e66 commit e6f01fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/chunks/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ where
/// Renders the given detail string to the command line. If the `detail` is
/// either missing or empty, the optional fallback will be used.
fn render_detail(detail: Option<&str>, fallback: Option<&str>) {
let string = detail.unwrap_or_else(|| fallback.unwrap_or_default());
let string = detail.or(fallback).unwrap_or_default();

for line in string.lines() {
if !line.is_empty() {
Expand Down

0 comments on commit e6f01fa

Please sign in to comment.