mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-22 20:36:38 +00:00
cargo fmt
This commit is contained in:
@@ -929,13 +929,17 @@ impl FileMetaVersion {
|
||||
}
|
||||
|
||||
pub fn get_data_dir(&self) -> Option<Uuid> {
|
||||
if self.valid() { {
|
||||
if self.valid() {
|
||||
{
|
||||
if self.version_type == VersionType::Object {
|
||||
self.object.as_ref().map(|v| v.data_dir).unwrap_or_default()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
} } else { Default::default() }
|
||||
}
|
||||
} else {
|
||||
Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_version_id(&self) -> Option<Uuid> {
|
||||
|
||||
Reference in New Issue
Block a user