Skip to content

Commit

Permalink
Removed TODOs fixed in previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsTheFae committed Feb 5, 2024
1 parent 96d82fe commit 7847853
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion musicbot/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ async def estimate_time_until(
:raises: musicbot.exceptions.InvalidDataError if duration data cannot be calculated.
"""
# TODO: double check the way we deal with time again. I've messed something up.
if any(e.duration is None for e in islice(self.entries, position - 1)):
raise InvalidDataError("no duration data")

Expand Down
1 change: 0 additions & 1 deletion musicbot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ def format_song_duration(seconds: Union[int, float, datetime.timedelta]) -> str:
If input `seconds` is an int or float, it will be converted to a timedelta.
If the input has partial seconds, those are quietly removed without rounding.
"""
# TODO: fix this to take in a timedelta object instead of a string.
if isinstance(seconds, (int, float)):
seconds = datetime.timedelta(seconds=seconds)

Expand Down

0 comments on commit 7847853

Please sign in to comment.