• Seth Vargo's avatar
    text/template: remove duplicate logic in conditional · 50c7783f
    Seth Vargo authored
    It looks like this conditional may have been refactored at some point,
    but the logic was still very confusing. The outer conditional checks if
    the function is variadic, so there's no need to verify that in the
    result. Additionally, since the function isn't variadic, there is no
    reason to permit the function call if the number of input arguments is
    less than the function signature requires.
    
    Change-Id: Ia957cf83d1c900c08dd66384efcb74f0c368422e
    Reviewed-on: https://go-review.googlesource.com/35491
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    50c7783f
exec.go 29.4 KB