Skip to content

Commit

Permalink
drop $seen since we can't get duplicated entry here
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonéri Le Bouder committed Mar 11, 2012
1 parent e8291ea commit fc5dce8
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -6,8 +6,6 @@ use warnings;
use FusionInventory::Agent::Tools;
use FusionInventory::Agent::Tools::Unix;

my $seen;

sub isEnabled {
return 1;
}
Expand Down Expand Up @@ -66,9 +64,6 @@ sub doInventory {
$video->{RESOLUTION} =~ s/@.*//;
}

# avoid duplicates
next if $seen->{$video->{NAME}}++;

$inventory->addEntry(
section => 'VIDEOS',
entry => $video
Expand Down

0 comments on commit fc5dce8

Please sign in to comment.