From d36af33c946fbe374d71942f4f0a6295b345a6e4 Mon Sep 17 00:00:00 2001 From: Radu Marias Date: Wed, 24 Apr 2024 05:28:34 +0300 Subject: [PATCH] remove some unnecessary return --- src/encryptedfs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/encryptedfs.rs b/src/encryptedfs.rs index cfdd8844..2a7a8577 100644 --- a/src/encryptedfs.rs +++ b/src/encryptedfs.rs @@ -1069,7 +1069,7 @@ impl EncryptedFs { let keys: Vec = self.read_handles.keys().cloned().collect(); for key in keys { let (attr, _, _, _) = self.read_handles.get(&key).unwrap(); - if attr.ino != ino{ + if attr.ino != ino { continue; } let (attr, _, _, lock) = self.read_handles.remove(&key).unwrap(); @@ -1080,8 +1080,8 @@ impl EncryptedFs { fn check_password(&mut self) -> FsResult<()> { match self.get_inode(ROOT_INODE) { Ok(_) => Ok(()), - Err(FsError::SerializeError(_)) => return Err(FsError::InvalidPassword), - Err(err) => return Err(err), + Err(FsError::SerializeError(_)) => Err(FsError::InvalidPassword), + Err(err) => Err(err), } }