shell: improve interactive mode
This commit is contained in:
@@ -150,10 +150,7 @@ pub trait DirectoryImpl: CommonImpl {
|
||||
}
|
||||
|
||||
fn contains(&self, node: &NodeRef, name: &Filename) -> bool {
|
||||
match self.lookup(node, name) {
|
||||
Ok(_) => true,
|
||||
Err(_) => false,
|
||||
}
|
||||
self.lookup(node, name).is_ok()
|
||||
}
|
||||
|
||||
/// Returns the "length" of the directory in entries
|
||||
|
||||
Reference in New Issue
Block a user