Skip to content

Commit

Permalink
remove unnecessary return
Browse files Browse the repository at this point in the history
  • Loading branch information
CAIMEOX committed Mar 20, 2024
1 parent 50ad71c commit b4601de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queue/queue.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn op_equal[T : Eq](self : Cell[T], other : Cell[T]) -> Bool {
Nil, Nil => true
Cons({ content: x, next: xs }), Cons({ content: y, next: ys }) => {
if x != y {
return false
break false
}
continue xs, ys
}
Expand Down Expand Up @@ -284,7 +284,7 @@ pub fn iter[T](self : Queue[T], f : (T) -> Unit) -> Unit {
f(content)
continue next
}
Nil => return
Nil => ()
}
}

Expand Down

0 comments on commit b4601de

Please sign in to comment.