Skip to content

Commit

Permalink
pl_gen_fused: fix R1710
Browse files Browse the repository at this point in the history
Fix "R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)"
  • Loading branch information
pjaitken committed Feb 23, 2021
1 parent 6fefdc6 commit d8a0190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pl_gen_fused
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def gen_invoke_fused_node(f, indent_lvl, from_feature_point, dyn_feats, from_cas
write_indent(f, indent_lvl, 'return true;')
else:
write_indent(f, indent_lvl, 'continue;')
return
return False
elif node.node_type == 'PL_OUTPUT':
if node.next_nodes:
raise RuntimeError(
Expand All @@ -383,7 +383,7 @@ def gen_invoke_fused_node(f, indent_lvl, from_feature_point, dyn_feats, from_cas
write_indent(f, indent_lvl, 'return false;')
else:
write_indent(f, indent_lvl, 'goto cleanup;')
return
return False
elif node.node_type == 'PL_PROC':
if from_feature_point and not from_case_feature:
storage_ctx = "storage_ctx"
Expand Down

0 comments on commit d8a0190

Please sign in to comment.