diff --git a/cosmic-config/src/lib.rs b/cosmic-config/src/lib.rs index 0a3e0c9e..357625e1 100644 --- a/cosmic-config/src/lib.rs +++ b/cosmic-config/src/lib.rs @@ -329,8 +329,8 @@ impl ConfigGet for Config { fn get_local(&self, key: &str) -> Result { // If key path exists - match self.key_path(key)? { - key_path if key_path.is_file() => { + match self.key_path(key) { + Ok(key_path) if key_path.is_file() => { // Load user override let data = fs::read_to_string(key_path) .map_err(|err| Error::GetKey(key.to_string(), err))?;