Commits

Matt Chaput committed e3977f3

ListMatcher.skip_to_quality() didn't return an integer.

  • Participants
  • Parent commits 019ee24

Comments (0)

Files changed (1)

src/whoosh/matching.py

         self._i += 1
         while self._i < len(self._ids) and self.quality() <= minquality:
             self._i += 1
+        return 0
     
     def id(self):
         return self._ids[self._i]
         
         # Short circuit if one matcher is inactive
         if not a.is_active():
-            sk = b.skip_to_quality(minquality)
-            return sk
+            return b.skip_to_quality(minquality)
         elif not b.is_active():
             return a.skip_to_quality(minquality)