Browse Source

Changed order for readability

Alois Mahdal (@azzgoat) 12 years ago
parent
commit
52d66019c8
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/SugarTrail/Template/Master.pm

+ 2
- 1
lib/SugarTrail/Template/Master.pm View File

63
 sub generate_slave {
63
 sub generate_slave {
64
     my $self = shift;
64
     my $self = shift;
65
     my $args = shift;
65
     my $args = shift;
66
-    $self->parse() unless $self->{parsed};
67
     my $slave = SugarTrail::Template::Slave->new($args);
66
     my $slave = SugarTrail::Template::Slave->new($args);
68
 
67
 
68
+    $self->parse() unless $self->{parsed};
69
+
69
     my @slave_steps;
70
     my @slave_steps;
70
     STEP: foreach my $master_step (@{ $self->{steps} }) {
71
     STEP: foreach my $master_step (@{ $self->{steps} }) {
71
         my $accept = 1;     # accept by default
72
         my $accept = 1;     # accept by default