Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
imaqtkatt committed Mar 28, 2024
1 parent 1f273c4 commit ab2e081
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/term/transform/float_combinators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ impl Term {
// Recursively float the children terms.
term.float_combinators(combinators, name_gen, book, def_name, builtin, seen);

// Don't float if it has unscoped variables.
if term.has_unscoped_diff() {
continue;
}

if term.is_combinator() && !term.is_safe(book, seen) {
float_combinator(def_name, name_gen, term, builtin, combinators);
}
Expand Down

0 comments on commit ab2e081

Please sign in to comment.