remove redundant loop

This commit is contained in:
matveevandrey 2018-12-21 12:56:10 +03:00 committed by GitHub
parent f8e0e006ab
commit c35c953e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

4
sanoid
View File

@ -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) {