simplify a tiny bit of code
Arthur Axel 'fREW' Schmidt [Mon, 29 Mar 2010 02:54:22 +0000 (21:54 -0500)]
lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm

index b742588..23081ab 100644 (file)
@@ -368,11 +368,11 @@ method _read_sql_file($file) {
 
 sub downgrade_single_step {
   my $self = shift;
-  my @version_set = @{ shift @_ };
+  my $version_set = shift @_;
 
   my $sql = $self->_run_sql_and_perl($self->_ddl_schema_down_consume_filenames(
     $self->storage->sqlt_type,
-    \@version_set,
+    $version_set,
   ));
 
   return ['', $sql];
@@ -380,11 +380,11 @@ sub downgrade_single_step {
 
 sub upgrade_single_step {
   my $self = shift;
-  my @version_set = @{ shift @_ };
+  my $version_set = shift @_;
 
   my $sql = $self->_run_sql_and_perl($self->_ddl_schema_up_consume_filenames(
     $self->storage->sqlt_type,
-    \@version_set,
+    $version_set,
   ));
   return ['', $sql];
 }