Skip to content

Commit

Permalink
remove redundant loop
Browse files Browse the repository at this point in the history
  • Loading branch information
matveevandrey committed Dec 21, 2018
1 parent f8e0e00 commit c35c953
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sanoid
Expand Up @@ -380,9 +380,6 @@ sub take_snapshots {
my @types = ('yearly','monthly','weekly','daily','hourly','frequently');

foreach my $type (@types) {

foreach my $_type (keys %{ $config{$section} }){
unless ($type eq $_type) { next; }
if ($config{$section}{$type} > 0) {

my $newestage; # in seconds
Expand Down Expand Up @@ -509,7 +506,6 @@ sub take_snapshots {
}
}
}
}
}

if ( (scalar(@newsnaps)) > 0) {
Expand Down

0 comments on commit c35c953

Please sign in to comment.