Skip to content

Commit 5752d56

Browse files
committed
Remove ad-hoc "untyped" guard from wrong_return_type
The string comparison `actual_ty == "untyped"` was no longer needed. This guard was originally needed when `check_match` was used (1a933d6), but became dead code when `check_match` was replaced with `typecheck` in 3251cbc.
1 parent 8d681f2 commit 5752d56

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/typeprof/core/graph/box.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ def run0(genv, changes)
311311

312312
def wrong_return_type(f_ret_show, changes)
313313
actual_ty = @a_ret.show
314-
return if actual_ty == "untyped" # XXX: too ad-hoc?
315314
msg = "expected: #{ f_ret_show }; actual: #{ actual_ty }"
316315
case @node
317316
when AST::ReturnNode

0 commit comments

Comments
 (0)