Permalink
Browse files

remove redundant loop

  • Loading branch information...
matveevandrey committed Dec 21, 2018
1 parent f8e0e00 commit c35c953e548a922e57edfaa046313a5fafe271a6
Showing with 0 additions and 4 deletions.
  1. +0 −4 sanoid
4 sanoid
@@ -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
@@ -509,7 +506,6 @@ sub take_snapshots {
}
}
}
}
}

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

0 comments on commit c35c953

Please sign in to comment.