Skip to content

Commit b06630d

Browse files
authored
Update hasse_diagram.py
voilà, voilà
1 parent 861093d commit b06630d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sage/combinat/posets/hasse_diagram.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,7 @@ def bottom(self) -> int | None:
443443
next(min_elms)
444444
except StopIteration:
445445
return bottom
446-
else:
447-
return None
446+
return None
448447

449448
def has_bottom(self) -> bool:
450449
"""
@@ -482,8 +481,7 @@ def top(self) -> int | None:
482481
next(max_elms)
483482
except StopIteration:
484483
return top
485-
else:
486-
return None
484+
return None
487485

488486
def has_top(self) -> bool:
489487
"""

0 commit comments

Comments
 (0)