Re: [PATCH 2/5] Don't return 'undef' in case called in a vector context.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 22, 2007, 21:17 UTC
- Message-ID
- <7vd4u23rpg.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20071122045534.435f01bb@paradox.zwell.net>
Dan Zwell <dzwell@zwell.net> writes:
Show 13 quoted lines
> diff --git a/perl/Git.pm b/perl/Git.pm
> index dca92c8..6603762 100644
> --- a/perl/Git.pm
> +++ b/perl/Git.pm
> @@ -508,7 +508,7 @@ sub config {
> my $E = shift;
> if ($E->value() == 1) {
> # Key not found.
> - return undef;
> + return;
> } else {
> throw $E;
> }Shouldn't the same fix made to config_bool as well?