Skip to content

Commit

Permalink
Fix lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jul 23, 2023
1 parent 97a7e2e commit 4455c16
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/base_directories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,7 @@ impl BaseDirectories {

/// Returns `true` if `XDG_RUNTIME_DIR` is available, `false` otherwise.
pub fn has_runtime_directory(&self) -> bool {
match self.get_runtime_directory() {
Ok(_) => true,
_ => false,
}
self.get_runtime_directory().is_ok()
}

/// Like [`place_config_file()`](#method.place_config_file), but does
Expand Down

0 comments on commit 4455c16

Please sign in to comment.