Remove another needless BrickStore.graph.triples check

As before, this returns a generator type which always evaluates true, even if it is empty.
This commit is contained in:
rileywong311
2023-08-10 12:32:32 -07:00
parent 7dc3c62455
commit 15a8b4d120
-1
View File
@@ -340,7 +340,6 @@ class Brick(blenderbim.core.tool.Brick):
@classmethod @classmethod
def remove_brick(cls, brick_uri): def remove_brick(cls, brick_uri):
if BrickStore.graph.triples((URIRef(brick_uri), None, None)):
with BrickStore.new_changeset() as cs: with BrickStore.new_changeset() as cs:
for triple in BrickStore.graph.triples((URIRef(brick_uri), None, None)): for triple in BrickStore.graph.triples((URIRef(brick_uri), None, None)):
cs.remove(triple) cs.remove(triple)