lint: Fixed linter complaints in paths module
This commit is contained in:
+1
-3
@@ -42,9 +42,7 @@ pub fn sandbox_kit_override() -> Option<PathBuf> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn translate_sandboxed_home_path(path: &Path) -> Option<PathBuf> {
|
pub fn translate_sandboxed_home_path(path: &Path) -> Option<PathBuf> {
|
||||||
if env::var_os("IS_SANDBOX").is_none() {
|
env::var_os("IS_SANDBOX")?;
|
||||||
return None;
|
|
||||||
}
|
|
||||||
|
|
||||||
let s = path.to_str()?;
|
let s = path.to_str()?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user