mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
create_element_types - remove unnecessary check
Was introduced in0ee9329, but no longer needed since `None` values are excluded from this set after10f8453
This commit is contained in:
@@ -525,8 +525,6 @@ class IfcImporter:
|
|||||||
print("WARNING. Loading element types from IFCSQLite is not supported.")
|
print("WARNING. Loading element types from IFCSQLite is not supported.")
|
||||||
return
|
return
|
||||||
for element_type in self.element_types:
|
for element_type in self.element_types:
|
||||||
if not element_type:
|
|
||||||
continue
|
|
||||||
self.create_element_type(element_type)
|
self.create_element_type(element_type)
|
||||||
|
|
||||||
def create_element_type(self, element: ifcopenshell.entity_instance) -> None:
|
def create_element_type(self, element: ifcopenshell.entity_instance) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user