]> sourceware.org Git - automake.git/commitdiff
* lib/Automake/Conditional.pm (has): Simplify.
authorAlexandre Duret-Lutz <adl@gnu.org>
Tue, 8 Oct 2002 17:37:55 +0000 (17:37 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Tue, 8 Oct 2002 17:37:55 +0000 (17:37 +0000)
ChangeLog
lib/Automake/Conditional.pm

index 8325401a78691ce9740366e8fcdd1974aa2107a6..f0a02a7305e9518a91d9a54f8a57f058569d5012 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-08  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * lib/Automake/Conditional.pm (has): Simplify.
+
 2002-10-07  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * lib/Automake/Conditional.pm: New file.
index 023c1d78502cfd4e153986544ebbb47a077999b4..26a16a5c211c56f664c0a1d729313b4a0ffe34a9 100644 (file)
@@ -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-E<gt>false>
This page took 0.03263 seconds and 5 git commands to generate.