Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
18119: Refactor is_injective (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrejmon committed Apr 22, 2021
1 parent 7a230ac commit e472040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/combinat/words/morphism.py
Expand Up @@ -3209,9 +3209,9 @@ def check(u, v):
tails.add(tail)
todo.append(tail)

images = self.images()
if any(not x for x in images):
if self.is_erasing():
return False
images = self.images()
tails = set()
todo = []

Expand Down

0 comments on commit e472040

Please sign in to comment.