Author: REHSACK
Date: Wed Jul  6 23:45:24 2011
New Revision: 14898

Modified:
   dbi/branches/sqlengine/lib/DBI/SQL/Nano.pm

Log:
replace 8 lines if/else by 1 line ?:

Modified: dbi/branches/sqlengine/lib/DBI/SQL/Nano.pm
==============================================================================
--- dbi/branches/sqlengine/lib/DBI/SQL/Nano.pm  (original)
+++ dbi/branches/sqlengine/lib/DBI/SQL/Nano.pm  Wed Jul  6 23:45:24 2011
@@ -695,15 +695,8 @@
     {
         return $self->{"params"}->[$val_num];
     }
-    if (wantarray)
-    {
-        return @{ $self->{"params"} };
-    }
-    else
-    {
-        return scalar @{ $self->{"params"} };
-    }
 
+    return wantarray ? @{ $self->{"params"} } : scalar @{ $self->{"params"} };
 }
 
 sub open_tables

Reply via email to