We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bab9b commit 2a0ea29Copy full SHA for 2a0ea29
surface-dtx-userd/src/config.rs
@@ -40,7 +40,7 @@ pub enum LogLevel {
40
impl Config {
41
pub fn load() -> Result<(Config, Diagnostics)> {
42
let mut user_config = std::env::var_os("XDG_CONFIG_HOME")
43
- .and_then(|d| if d != "" { Some(d) } else { None })
+ .and_then(|d| if !d.is_empty() { Some(d) } else { None })
44
.map(PathBuf::from)
45
.unwrap_or_else(|| PathBuf::from("~/.config"));
46
user_config.push(USER_CONFIG_LOCAL_PATH);
0 commit comments