Skip to content

Commit

Permalink
polish _remove_no_value_return_var() function (#36826) (#36830)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f authored Oct 28, 2021
1 parent d8ffb26 commit c716cf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def convert_ifelse(pred, true_fn, false_fn, true_args, false_args, return_vars):


def _remove_no_value_return_var(out):
if out and isinstance(out, tuple):
if isinstance(out, tuple) and len(out) > 0:
processed_out = out
align_ret = out[0]
if isinstance(align_ret, tuple):
Expand Down

0 comments on commit c716cf3

Please sign in to comment.