Skip to content

Commit

Permalink
reverse test, and comment its purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Aug 6, 2012
1 parent 9d65b85 commit db2a94d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/FusionInventory/Agent/Tools/Generic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ sub getDmidecodeInfos {
}
close $handle;

return if 2 > keys %$info;
# do not return anything if dmidecode output is obviously truncated
return if keys %$info < 2;

return $info;
}
Expand Down

0 comments on commit db2a94d

Please sign in to comment.