Skip to content

Commit

Permalink
Do not accept None as shift name.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jul 3, 2023
1 parent 2b2b695 commit fb0ee7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions order/shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ def split_name(cls, name):
split_name("pdf_up") # -> ("pdf", "up")
split_name("pdfup") # -> ValueError: invalid shift name format: pdfup
"""
if name is None:
return (None, None)

if name == cls.NOMINAL:
return (cls.NOMINAL, cls.NOMINAL)

Expand Down

0 comments on commit fb0ee7d

Please sign in to comment.