This commit is contained in:
@@ -149,11 +149,10 @@ pub mod loop_detection {
|
||||
|
||||
impl LoopStack<'_> {
|
||||
pub fn contains(&self, id: MemberID) -> bool {
|
||||
if let Some(ls) = &self.prev {
|
||||
if ls.contains(id) {
|
||||
if let Some(ls) = &self.prev
|
||||
&& ls.contains(id) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
self.curr == id
|
||||
}
|
||||
|
Reference in New Issue
Block a user