fix spots dupes?
[spider.git] / perl / DXDupe.pm
index fb1210a2a15b7186c11980712b52ba6120d80a1d..63fdcb2bb24534a41d7a970961b2edb34937f8d7 100644 (file)
@@ -27,7 +27,7 @@ $main::branch += $BRANCH;
 
 sub init
 {
-       $dbm = tie (%d, 'DB_File', $fn) or confess "can't open dupe file: $fn ($!)";
+       $dbm = tie (%d, 'DB_File', $fn);
        unless ($dbm) {
                eval { untie %d };
                dbg("Dupefile $fn corrupted, removing...");
@@ -54,7 +54,7 @@ sub check
 
 sub find
 {
-       return 1 if exists $d{$_[0]};
+       return $d{$_[0]};
 }
 
 sub add