diff --git a/ark-cli/src/util.rs b/ark-cli/src/util.rs index 40eff290..c5db3536 100644 --- a/ark-cli/src/util.rs +++ b/ark-cli/src/util.rs @@ -179,10 +179,9 @@ pub fn translate_storage( root: &Option, storage: &str, ) -> Option<(PathBuf, Option)> { - if let Ok(path) = PathBuf::from_str(storage) { - if path.exists() && path.is_dir() { - return Some((path, None)); - } + let Ok(path) = PathBuf::from_str(storage); + if path.exists() && path.is_dir() { + return Some((path, None)); } match storage.to_lowercase().as_str() { diff --git a/fs-index/src/index.rs b/fs-index/src/index.rs index 156d965c..f8986fc4 100644 --- a/fs-index/src/index.rs +++ b/fs-index/src/index.rs @@ -497,8 +497,7 @@ impl ResourceIndex { /// - The index is up-to-date with the file system except for the updated /// resource /// - In case of a addition, the resource was not already in the index - /// - In case of a removal, the resource was already in the - /// index + /// - In case of a removal, the resource was already in the index /// - In case of a move or rename, `update_one()` should be called twice: /// once with the old path to remove the previous entry, and once with the /// new path to add the updated entry