From d8e3a728cb0d9d37396c5a17dcb1d1b6ff537233 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 8 Oct 2002 17:37:55 +0000 Subject: [PATCH] * lib/Automake/Conditional.pm (has): Simplify. --- ChangeLog | 4 ++++ lib/Automake/Conditional.pm | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8325401a..f0a02a73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-10-08 Alexandre Duret-Lutz + + * lib/Automake/Conditional.pm (has): Simplify. + 2002-10-07 Alexandre Duret-Lutz * lib/Automake/Conditional.pm: New file. diff --git a/lib/Automake/Conditional.pm b/lib/Automake/Conditional.pm index 023c1d78..26a16a5c 100644 --- a/lib/Automake/Conditional.pm +++ b/lib/Automake/Conditional.pm @@ -36,7 +36,7 @@ Automake::Conditional - record a conjunction of conditions # "COND1 and not COND2 and not COND3". my $both = $cond->merge ($other); - # Likewise, but using a list of atomica conditional strings + # Likewise, but using a list of atomic conditional strings my $both2 = $cond->merge_conds ("COND3_FALSE"); # Return the list of conditions ("COND1_TRUE", "COND2_FALSE"): @@ -231,11 +231,7 @@ sub conds ($ ) sub has ($$) { my ($self, $cond) = @_; - if (exists $self->{'hash'}{$cond}) - { - return $self->{'hash'}{$cond}; - } - return 0; + return exists $self->{'hash'}{$cond}; } =item C<$cond-Efalse> -- 2.43.5