Skip to content

Commit

Permalink
[core][compiled graph] remove dead code (ray-project#48282)
Browse files Browse the repository at this point in the history
If args is not a list, an exception will be thrown in the above if statement.
  • Loading branch information
kevin85421 authored and Jay-ju committed Nov 5, 2024
1 parent 7df78d9 commit 05ce0d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/ray/dag/output_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def __init__(
args = list(args)
if not isinstance(args, list):
raise ValueError(f"Invalid input type for `args`, {type(args)}.")
if not isinstance(args, list):
args = (args,)
super().__init__(
args,
{},
Expand Down

0 comments on commit 05ce0d9

Please sign in to comment.