This commit is contained in:
parent
b352a7bc43
commit
9c1dca651b
1 changed files with 3 additions and 1 deletions
|
@ -137,9 +137,11 @@ pub fn has_filesystem(dev: &str) -> Option<String> {
|
|||
|
||||
if let Some(dev_entry) = dev_entry {
|
||||
if let Some(fs) = dev_entry.as_object().unwrap().get("fstype") {
|
||||
if matches!(fs, serde_json::Value::String(_)) {
|
||||
return Some(fs.to_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue