diff --git a/emmopy/emmocheck.py b/emmopy/emmocheck.py index cc434de00..67fc1ec36 100644 --- a/emmopy/emmocheck.py +++ b/emmopy/emmocheck.py @@ -411,13 +411,8 @@ def test_namespace(self): exceptions.update(self.get_config("test_namespace.exceptions", ())) def checker(onto, ignore_namespace): - if ( - list( - filter( - onto.base_iri.strip("#").endswith, self.ignore_namespace - ) - ) - != [] + if list( + filter(onto.base_iri.strip("#").endswith, self.ignore_namespace) ): print(f"Skipping namespace: {onto.base_iri}") return