Skip to content

Commit

Permalink
correct monomorphic reference check
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEnglish committed Aug 26, 2024
1 parent e0f9ce6 commit 9d88af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truvari/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def filter_call(self, entry, base=False):
Returns True if the call should be filtered
Base has different filtering requirements, so let the method know
"""
if self.params.check_monref and entry.alts and entry.alts[0] in (None, '*'): # ignore monomorphic reference
if self.params.check_monref and (not entry.alts or entry.alts[0] in (None, '*')): # ignore monomorphic reference
return True

if self.params.check_multi and len(entry.alts) > 1:
Expand Down

0 comments on commit 9d88af8

Please sign in to comment.