From: Rico Tzschichholz Date: Fri, 15 Oct 2021 10:02:21 +0000 (+0200) Subject: vala: No need to run return_type.check() twice for method X-Git-Tag: 0.55.1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5155348daf224f1ce3fe9a9432168ad6db9210f9;p=thirdparty%2Fvala.git vala: No need to run return_type.check() twice for method --- diff --git a/vala/valamethod.vala b/vala/valamethod.vala index f03df3a4c..9769efff9 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -832,10 +832,6 @@ public class Vala.Method : Subroutine, Callable { source_reference.file.context.module_init_method = this; } - if (return_type != null) { - return_type.check (context); - } - if (parameters.size == 1 && parameters[0].ellipsis && body != null && binding != MemberBinding.INSTANCE) { // accept just `...' for external methods and instance methods error = true;