Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
melekes committed Nov 17, 2022
1 parent 3f417fe commit 8fb4ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/cli/src/params/webrtc_certificate_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ impl WebRTCCertificateParams {
/// Create a `WebRTCConfig` from the given `WebRTCCertificateParams` in the context
/// of an optional network config storage directory.
pub fn webrtc_certificate(&self, net_config_dir: &PathBuf) -> error::Result<WebRTCConfig> {
let cert = self
let filename = self
.webrtc_certificate_file
.clone()
.unwrap_or_else(|| net_config_dir.join(WEBRTC_CERTIFICATE_FILENAME));

Ok(WebRTCConfig::File(Some(cert)))
Ok(WebRTCConfig::File(Some(filename)))
}
}

Expand Down

0 comments on commit 8fb4ae2

Please sign in to comment.