Skip to content

Commit

Permalink
perf(Directories): Avoid unecessary create_dir_all call
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Feb 28, 2021
1 parent 8ac528c commit 95cfd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/util/dirs.rs
Expand Up @@ -19,7 +19,7 @@ pub fn config(ensure: bool) -> Result<PathBuf> {

/// Get the directory within which plugins and their configurations are installed
pub fn plugins(ensure: bool) -> Result<PathBuf> {
let config = config(ensure)?;
let config = config(false)?;
let dir = match env::consts::OS {
"macos" => config.join("Plugins"),
"windows" => config.join("Plugins"),
Expand Down

0 comments on commit 95cfd3d

Please sign in to comment.