Skip to content

Commit

Permalink
as_ref()
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Dec 1, 2023
1 parent fb65a18 commit 1584cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/packager/src/package/dmg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub(crate) fn package(ctx: &Context) -> crate::Result<Vec<PathBuf>> {
bundle_dmg_cmd.arg(&y);
}

let background_path = match &dmg.and_then(|d| d.background) {
let background_path = match &dmg.and_then(|d| d.background.as_ref()) {
Some(p) => Some(std::env::current_dir()?.join(p)),
None => None,
};
Expand Down

0 comments on commit 1584cd9

Please sign in to comment.