ffb14ca7ea496e76f5dc2052d8c02f4f59fd75b4
braney
  Tue Feb 1 17:28:37 2022 -0800
Revert "fix a bug that resulted in erroneous bigBed entries being reported"

This reverts commit b88bd07c19e4224a3e1dc86356bd056f570c592f.

diff --git src/lib/bbiRead.c src/lib/bbiRead.c
index 39b9036..2c7fadc 100644
--- src/lib/bbiRead.c
+++ src/lib/bbiRead.c
@@ -194,31 +194,30 @@
 if (!bptFileFind(bbi->chromBpt, chrom, strlen(chrom), idSize, sizeof(idSize)))
     {
     if (bbi->aliasHash)
         {
         // didn't find chrom name, but have an alias hash.  Try the aliases
         struct hashEl *hel = hashLookup(bbi->aliasHash, chrom);
 
         while(hel)
             {
             char *alias = hel->val;
             if (bptFileFind(bbi->chromBpt, alias, strlen(alias), idSize, sizeof(idSize)))
                 break;
 
             hel = hashLookupNext(hel);
             }
-        return NULL;
         }
     else
         {
         // if chrom is not found and the chrom starts with "chr", try without "chr"
         if (!startsWith("chr", chrom) || !bptFileFind(bbi->chromBpt, &chrom[3], strlen(chrom) - 3, idSize, sizeof(idSize)))
             return NULL;
         }
     }
 chromIdSizeHandleSwapped(bbi->isSwapped, idSize);
 
 return idSize;
 }
 
 struct fileOffsetSize *bbiOverlappingBlocks(struct bbiFile *bbi, struct cirTreeFile *ctf,
 	char *chrom, bits32 start, bits32 end, bits32 *retChromId)