Skip to content

Commit

Permalink
remove unreachable branch in raw call
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Oct 25, 2023
1 parent 5695804 commit 2b78854
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions vyper/builtins/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,16 +1087,12 @@ def fetch_call_return(self, node):
return None
return BoolT()

if outsize < 0:
raise
return_type = BytesT()
return_type.set_min_length(outsize)

if outsize:
return_type = BytesT()
return_type.set_min_length(outsize)

if revert_on_failure:
return return_type
return TupleT([BoolT(), return_type])
if revert_on_failure:
return return_type
return TupleT([BoolT(), return_type])

def infer_arg_types(self, node, *args, **kwargs):
self._validate_arg_types(node)
Expand Down

0 comments on commit 2b78854

Please sign in to comment.