Skip to content

Commit

Permalink
Use ? instead of unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp authored Jan 4, 2024
1 parent bb3cc59 commit 3fb8cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alvr/dashboard/src/dashboard/components/setup_wizard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ fn download_and_prepare_audio_script() -> alvr_common::anyhow::Result<std::path:
)
.call()?;

fs::write(&audio_script_path, response.into_string()?).unwrap();
fs::write(&audio_script_path, response.into_string()?)?;
fs::set_permissions(&audio_script_path, fs::Permissions::from_mode(0o755))?;

Ok(audio_script_path)
Expand Down

0 comments on commit 3fb8cc0

Please sign in to comment.