Mercurial > farol > farolluz
diff farolluz/document.py @ 30:b15022ae484a
Fix isProductOrphan
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 27 Oct 2014 12:29:37 +0100 |
parents | 809db989cac5 |
children | 1ea1a3c3c790 |
line wrap: on
line diff
--- a/farolluz/document.py Mon Oct 27 11:48:42 2014 +0100 +++ b/farolluz/document.py Mon Oct 27 12:29:37 2014 +0100 @@ -291,9 +291,9 @@ def isProductOrphan(self, productid): """ Returns if a productid is mentioned nowhere in the document """ - for item in self.mentionsProductId(productid): - return True - return False + for _ in self.mentionsProductId(productid): + return False + return True def changeProductID(self, old, new): for item in self.mentionsProductId(old):