• 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
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...