Skip to content

Commit

Permalink
fix pytest for the new visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
gesuwen committed Mar 4, 2024
2 parents 05aaad2 + 1d57713 commit 610cba9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torchfix/torchfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def transform_module_impl(self, module: cst.Module) -> cst.Module:
update_functorch_imports_visitor = _UpdateFunctorchImports()
new_module = new_module.visit(update_functorch_imports_visitor)


if fixes_count == 0 and not update_functorch_imports_visitor.changed:
raise codemod.SkipFile("No changes")

Expand Down

0 comments on commit 610cba9

Please sign in to comment.